Linux Terminal Commands-3
Compression commands:
| Description | Shortcut key |
|---|---|
| Create a tar named file.tar containing files | tar cf file.tar files |
| Extract the files from file.tar | tar xf file.tar |
| Create a tar with Gzip compression | tar czf file.tar.gz files |
| Extract a tar using Gzip | tar xzf file.tar.gz |
| Create a tar with Bzip2 compression | tar cjf file.tar.bz2 |
| Extract a tar using Bzip2 | tar xjf file.tar.bz2 |
| Compresses file and renames it to file.gz | gzip file |
| Decompresses file.gz back to file | gzip -d file.gz |
Printing commands:
| Description | Shortcut key |
|---|---|
| Start the print daemon | /etc/rc.d/init.d/lpd start |
| Stop the print daemon | /etc/rc.d/init.d/lpd stop |
| Display status of the print daemon | /etc/rc.d/init.d/lpd status |
| Display jobs in print queue | lpq |
| Remove jobs from queue | lprm |
| Print a file | lpr |
| Printer control tool | lpc |
| Print the manual page called subject as plain text | man subject | lpr |
| Print the manual page called subject as Postscript output | man -t subject | lpr |
| Start X printer setup interface | printtool |
Network commands:
| Description | Shortcut key |
|---|---|
| List IP addresses for all devices on the local machine | ifconfig |
| Used to set the parameters of the network interface which are specific to the wireless operation (for example: the frequency) | iwconfig |
| used to display some additional information from a wireless network interface that is not displayed by iwconfig | iwlist |
| Ping host and output results | ping host |
| Get whois information for domain | whois domain |
| Get DNS information for domain | dig domain |
| Reverse lookup host | dig -x host |
| Download file | wget file |
| Continue a stopped download | wget -c file |

No comments:
Post a Comment