1
1
dpkg -l ?:package:Find version of a package
2
df -h::file system disk space usage
3
free -m::show RAM usage
4
ps auxww | grep ?:process:displays information about the active process
2
df -h::File system disk space usage
3
free -m::Show RAM usage
4
ps aux | grep ?:search string:Search active processes for search string
5
5
iwconfig::Display wireless network information
6
ifconfig -a::displays the status of the currently active interfaces
7
sudo iwlist::scan Scan Wireless networks
8
sudo /etc/init.d/networking restart::Reset the Network
6
ifconfig -a::Displays the status of the currently active interfaces
9
7
lsb_release -a::What version of Ubuntu do I have?
10
8
uname -a::What kernel am I running
11
9
sudo apt-get update && sudo apt-get upgrade::Refresh update info and update all packages
12
sudo apt-get clean::clear out all packages in /var/cache/apt/archives
13
sudo apt-get autoclean::clear out obsolete packages(packages with a newer release)
10
sudo apt-get clean::Clear out all packages in /var/cache/apt/archives
11
sudo apt-get autoclean::Clear out obsolete packages(packages with a newer release)
14
12
apt-cache search ?:package:Find information on a package (not installed)
15
13
sudo lshw::List hardware
16
lspci::list all PCI devices
14
lspci::List all PCI devices
17
15
aplay -l::List all soundcards and digital audio devices
18
16
cat ?:path:Read File & Print to Standard Output
19
17
ls ? :path:List Folders Contents
20
18
ls -lSr ?:path:Show files by size, biggest last
21
mv ?:path:Move (Rename) Files
19
mv ? ?:sourcePath, destinationPath:Move (Rename) Files
20
cp ? ?:sourcePath, destinationPath:Copy File from sourcePath to destinationPath
23
21
sudo lspci::attached PCI devices
24
22
chmod ? ?:permissions, file:Change access permissions, change mode
25
chown ? ?:owner,group, file:Change the owner and/or group of each given file
23
chown ? ?:owner:group, file:Change the owner and/or group of each given file
26
24
dmesg::Print kernel & driver messages
27
25
history::Command History
26
history | grep -i ?:command:search history for a command
28
27
locate ?:file:Find files (updatedb to update DB)
29
28
sudo updatedb::update the database for locate
30
29
which ?:command:Show full path name of command
31
30
find -maxdepth 1 -type f | xargs grep -F ?:string:Search all regular files for 'string' in this dir
32
31
gpg -c ?:file:Encypt a file
33
32
gpg ?:file.gpg:Decrypt a file
34
tar -xjf ?:archive.tar:Extract all files from archive.tar
35
tar -czf ?:Destination.tar.gz Source:Create Destination from Source
36
iostat::cpu and I/O statistics
33
tar -cvf ? ?:Destination.tar Source:Compress(tar) Source into Destination
34
tar -cvzf ? ?:Destination.tar.gz Source:Compress(tar.gz) Source into Destination
35
tar -cjvf ? ?:Destination.tar.bz2 Source:Compress(tar.bz2) Source into Destination
36
tar xvf ?:file:decompress/extract .tar
37
tar xvzf ?:file:decompress/extract tar.gz
38
tar xjvf ?:file:decompress/extract a tar.bz2
39
sudo dpkg --configure -a::help fix broken packages
40
sudo apt-get -f install::help fix broken packages
41
top::display Linux tasks
37
42
netstat::Print network connections and interface statistics
38
sudo fdisk -l ?:disk:List partition tables for specified devices
43
sudo fdisk -l ?:disk(usually /dev/sda):List partition tables for specified devices
39
44
sudo ufw enable::Enable netfilter firewall
40
45
sudo ufw allow ?:port:Open a port in netfilter firewall
41
46
sudo ufw deny ?:port:Close a port in netfilter firewall
42
47
sudo ufw disable::Disable netfilter firewall
43
48
cat ? ? | sort | uniq > ? :file1, file2, file3:combine, sort and remove duplicates from 2 files
44
mkisofs -V LABEL -r dir | gzip > ?:isoname.iso.gz:Create cdrom image(iso) from contents of directory(pwd)
45
cdrecord -v dev=/dev/cdrom -audio -pad *.wav::Make audio CD from all wavs in current dir(pwd)
46
49
dpkg-query -W -f='${Installed-Size;10}\t${Package}\n' | sort -k1,1n::List all installed packages by size
47
tail -f /var/log/messages::Monitor messages log file
48
50
apropos ?:command or package:search the manual page names and descriptions