Unix/Linux Command Reference: Compression, Network, Installation, Shortcuts
Command for repeating the last command
!!
Command for installing a package (Debian)
dpkg -i "pkg.deb"
Command for logging out of current session
exit
Command for compressing "file" and renaming it to "file.gz"
gzip "file"
Command for creating a tar named "file.tar" containing "files"
tar cf "file.tar" "files"
Command for creating a tar with Bzip2 compression
tar cjf "file.tar.bz2"
Command for extracting a tar using Bzip2
tar cjf "file.tar.bz2"
Command for creating a tar with Gzip compression
tar czf "file.tar.gz" "files"
Command for extracting the files from "file.tar"
tar xf "file.tar"
Command for extracting a tar using Gzip
tar xzf "file.tar.gz"
Command for downloading "file"
wget "file"
Command for continuing a stopped download
wget -c "file"
Command for getting whois information for "domain"
whois "domain"
Command for installing from source:
./configure make make install
Command for halting a current command
Ctrl+C
Command for logging out of current session
Ctrl+D
Command for typing to bring up a recent command
Ctrl+R
Command for erasing the whole line
Ctrl+U
Command for erasing one word in the current line
Ctrl+W
Stops a current command, resumes with fg in the foreground or bg in the background
Ctrl+Z
Command for getting DNS information for "domain"
dig "domain"
Command for reverse lookup "host"
dig -x "host"
Command for decompressing "file.gz" back to "file"
gzip -d "file.gz"
Command for pinging "host" and outputting results
ping "host"
Command for installing a package (RPM)
rpm -Uvh "pkg.rpm"