5.1.5. Other commands of operating system |
Commands that follow do not belong to the group that is used during the operation, but used sporadically in specific situations, or give insight into the situation that almost never changes. Therefore, as described on a separate page. But it should be borne in mind that the available commands are listed in the content directories [/bin], [/sbin] and [/usr/bin], and can also be subsequently installed 'packages' of additional commands (utilities), the person commands, e.g. ' screen ' command to control which screens multiplex physical terminal between several processes, or specific program support ' mc ' (GNU Midnight Commander), which is nothing more than a very good handler files from TUI interface. Services provided by the server may have, as an electronic mail (MAIL), WWW services, LDAP and RADIUS services and similar subsequently installed, and often have their own commands for handling them. In further support includes such package 'samba' which allows access by installing the Windows users in their corresponding directories without FTP support. Maybe at the present time for this purpose better use NAS. To work remotely SSH uses the client software. Additional commands and has a lot of packages, and can be viewed on any of the Debian servers, such as the CARNet (ftp://ftp.carnet.hr//debian/pool/main).
Shutdown and restart
Turning your computer on and off is the responsibility of system administration, and only physical power is something that every user knows. But it is not good that the server of an institution or a company everyone can turn on and off at the discretion. Therefore, servers must be in a separate room in which only the administrator has access. The stability of the server is mandatory that each of them to the power supply (110/220 V AC) is connected via UPS. UPS.
Working in the background and specific commands
Refer to the unusual and non-everyday tasks.
Special characters in commands
When the command is entered, certain characters have special meaning to the shell before it starts interpreting commands. A much more detailed description can be obtained from the literature dealing with the shell, but you have to understand what is happening, or will get unexpected results. One thing is certain, special characters should not be in the file specification, or command options..
Peculiarities
Under this subheading is thought to commands and actions that are occasionally used to focus some jobs or get information on the computer-server about checking the operation or by introducing an administrator from the basic properties of the new server.
If the user is a directory of frequently used, and access to it time consuming, it is well under that directory making symbolic link of directories that are commonly used, as is usually the starting point (home) directory. Debian uses a multitude of symbolic links, as shown in previous examples. Creating symbolic link in the desired directory is specified with the command ' ln ':
ln -s path_to_the_destination link_name (basic syntax) ln -s /var/www/joomla index.html (example) drago@voda:~$ su - (prompt for password with transfer of environment variables) voda:~# (working directory of the user 'root') voda:~# cd / voda:/# (root directory of the system) voda:/# cd /var/www (retrieval of directories where is the real link) voda:/var/www# voda:/var/www# ln -s /var/www/joomla index.html voda:/var/www# ls -al : lrwxrwxrwx 1 root root 16 2009-01-31 12:13 index.html -> /var/www/joomla
In the above example, all calls to the file 'index.html' directed to a directory that is added to the file specified.
If you want to read the basic information about the server, or check if there are any changes when upgrading can serve the next set of commands:
drago@voda:/usr/bin$ hostid
007f0101
drago@voda:/usr/bin$
drago@voda:/etc$ cat hostname
voda
drago@voda:/etc$
drago@voda:/etc$ cat issue
Debian GNU/Linux 5.0 \n \l
drago@voda:/etc$
drago@voda:/etc$ cat debian_version
5.0.5
drago@voda:/etc$
drago@voda:~$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
inet6 :1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN
link/ether 00:03:ff:66:10:46 brd ff:ff:ff:ff:ff:ff
inet 192.168.0.11/24 brd 192.168.0.255 scope global eth0
inet6 fe80:203:ffff:fe66:1046/64 scope link
valid_lft forever preferred_lft forever
drago@voda:~$
voda:~# ifconfig eth0 Link encap:Ethernet HWaddr 00:03:ff:66:10:46 inet addr:192.168.0.11 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80:203:ffff:fe66:1046/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:45861 errors:0 dropped:0 overruns:0 frame:0 TX packets:22407 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:68315340 (65.1 MiB) TX bytes:1564665 (1.4 MiB) Interrupt:11 Base address:0xec00 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:26 errors:0 dropped:0 overruns:0 frame:0 TX packets:26 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2762 (2.6 KiB) TX bytes:2762 (2.6 KiB) voda:~#
To check the network communications used commands ' ping ' and ' tracert ' with use as the Windows operating system, as described in the Chapter 7.4.4, except that the first command can execute each user and the second command only superuser (root).
Citing of this page: Radic, Drago. " Informatics Alphabet " Split-Croatia. {Date of access}; https://informatics.buzdo.com/file. Copyright © by Drago Radic. All rights reserved. | Disclaimer |