| Command |
Description |
|
# tac file1 |
view the contents of a file starting from the last line [man] |
|
# tail -2 file1 |
view last two lines of a file [man] |
|
# tail -f /var/log/messages |
view in real time what is added to a file [man] |
|
# tail /var/log/dmesg |
show events inherent to the process of booting kernel [man] |
|
# tail /var/log/messages |
show system events [man] |
|
# tar -cvf archive.tar file1 |
create a uncompressed tarball [man] |
|
# tar -cvf archive.tar file1 file2 dir1 |
create an archive containing 'file1', 'file2' and 'dir1' [man] |
|
# tar -tf archive.tar |
show contents of an archive [man] |
|
# tar -xvf archive.tar |
extract a tarball [man] |
|
# tar -xvf archive.tar -C /tmp |
extract a tarball into / tmp [man] |
|
# tar -cvfj archive.tar.bz2 dir1 |
create a tarball compressed into bzip2 [man] |
|
# tar -xvfj archive.tar.bz2 |
decompress a compressed tar archive in bzip2 [man] |
|
# tar -cvfz archive.tar.gz dir1 |
create a tarball compressed into gzip [man] |
|
# tar -xvfz archive.tar.gz |
decompress a compressed tar archive in gzip [man] |
|
# tar -Puf backup.tar /home/user |
make a incremental backup of directory '/home/user' [man] |
|
# ( cd /tmp/local/ && tar c . ) | ssh -C user@ip_addr 'cd /home/share/ && tar x -p' |
copy content of a directory on remote directory via ssh [man] |
|
# ( tar c /home ) | ssh -C user@ip_addr 'cd /home/backup-home && tar x -p' |
copy a local directory on remote directory via ssh [man] |
|
# tar cf - . | (cd /tmp/backup ; tar xf - ) |
local copy preserving permits and links from a directory to another [man] |
|
# tcpdump tcp port 80 |
show all HTTP traffic [man] |
|
# telinit 0 |
shutdown system(3) [man] |
|
# top |
display linux tasks using most cpu [man] |
|
# touch -t 0712250000 file1 |
modify timestamp of a file or directory - (YYMMDDhhmm) [man] |
|
# echo 'word' | tr '[:lower:]' '[:upper:]' |
convert from lower case in upper case [man] |
|
# tree |
show files and directories in a tree starting from root(1) [man] |