Linux Server and Workstation Configuration How To

  • Decrease font size
  • Default font size
  • Increase font size
  • default color
  • red color
  • green color
Home
tail
Tags: [linux, unix, command, tail]  ...
... have to run it echo 'gateway6_enable = "YES"'>> /etc/ rc.conf /Usr/local/etc/rc.d/gateway6 start And look # tail -f /var/log/messages Oct 17 18:39:38 lola gw6c: Gateway6 Client v5.0-RELEASE ...
Command tail Displays the last few lines of the file. Syntax tail [options] file Options -N (where N - number) displays the last N lines. -n N (where N - number) displays the last N lines. -f ...
4. ps
... processes of other users. f displays a tree of processes. j displays the output using the format jobs. l displays the data in long format, with detailed information about each process. m displays information ...
5. ls
... without sorting (just as it is stored on disk). -i displays information about the inode "inode". -l displays a list of files in a long format with detailed information. -p adds the file name symbol showing ...
6. ln
... a directory (this can be done only by root). -f remove existing file named newname. -help displays help for the team. -s creates a symbolic link. -v generates detailed output information. Description ...
... detailed output. -V displays the version number. Description The command gzip compresses files using the compression algorithm Lempel-Ziv LZ77. After compression gzip file replaces the original file ...
8. du
... For example, here so you can find details of the use of disk space a directory /var/log: du /var/log  ...
... -v displays detailed information about changes of access rights. -R recursively changes the permissions of files in all subdirectories. Description To effectively use chmod to know how to set permissions. ...
... error messages. -v displays detailed information about the changes owners. -R recursively change ownership of files in all subdirectories. Description To make the user an owner of one or more files, ...
... -v detailed reports on the changes the group owner. -R recursively changes the group ownership of files in all subdirectories. Description To change the group owner of one or more files, type chgrp ...
... like "log" # find / | grep log Show last 10 lines of the file # tail /var/log/messages Show first 10 lines of the file # head /var/log/messages Create diretcory # mkdir mydir Mount cd-rom # ...
...  Firewall # service iptables status # service iptables start # service iptables stop # service iptables restart Get Connections # netstat -ntu Detailed Network Connections Information # netstat -nap ...
... the command ls-l, can add to the file. bashrc in your home directory with the command line alias ll = 'ls -L '. Then, to view a detailed table of contents directory instead of ls-l command can enter the ...

Useful Links

Friends

Thanks David Ayvazyan for provided useful information and discussions.
www.gnu.am (Armenian Translation)