Shell Commands

From GotOpinion
Revision as of 17:31, 22 June 2010 by Paul (talk | contribs) (Tips)
Jump to navigation Jump to search

Tape Archival (tar)

Create tar

tar -cvf filename.tar filemane

Undo tar

tar -xvf filename.tar

List contents tar

tar -tvf filename.tar

gzip

Compress file

gzip -9 filename

Decompress file

gzip -d filename

ifconfig

To determine your IP address settings run:

ifconfig

find

To find path to a file run:

# find / -name "filename"


Tips

Find version of OS

  1. cat /etc/redhat-release
  1. cat /etc/redhat-release
  1. cat /etc/fedora-release
  1. cat /etc/SuSE-release
Linux