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 aux | grep ?:search string:Search active processes for search string
5
iwconfig::Display wireless network information
6
ifconfig -a::Displays the status of the currently active interfaces
7
lsb_release -a::What version of Ubuntu do I have?
8
uname -a::What kernel am I running
9
sudo apt-get update && sudo apt-get upgrade::Refresh update info and update all packages
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)
12
apt-cache search ?:package:Find information on a package (not installed)
13
sudo lshw::List hardware
14
lspci::List all PCI devices
15
aplay -l::List all soundcards and digital audio devices
16
cat ?:path:Read File & Print to Standard Output
17
ls ? :path:List Folders Contents
18
ls -lSr ?:path:Show files by size, biggest last
19
mv ? ?:sourcePath, destinationPath:Move (Rename) Files
20
cp ? ?:sourcePath, destinationPath:Copy File from sourcePath to destinationPath
21
sudo lspci::attached PCI devices
22
chmod ? ?:permissions, file:Change access permissions, change mode
23
chown ? ?:owner:group, file:Change the owner and/or group of each given file
24
dmesg::Print kernel & driver messages
25
history::Command History
26
history | grep -i ?:command:search history for a command
27
locate ?:file:Find files (updatedb to update DB)
28
sudo updatedb::update the database for locate
29
which ?:command:Show full path name of command
30
find -maxdepth 1 -type f | xargs grep -F ?:string:Search all regular files for 'string' in this dir
31
gpg -c ?:file:Encypt a file
32
gpg ?:file.gpg:Decrypt a file
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
42
netstat::Print network connections and interface statistics
43
sudo fdisk -l ?:disk(usually /dev/sda):List partition tables for specified devices
44
sudo ufw enable::Enable netfilter firewall
45
sudo ufw allow ?:port:Open a port in netfilter firewall
46
sudo ufw deny ?:port:Close a port in netfilter firewall
47
sudo ufw disable::Disable netfilter firewall
48
cat ? ? | sort | uniq > ? :file1, file2, file3:combine, sort and remove duplicates from 2 files
49
dpkg-query -W -f='${Installed-Size;10}\t${Package}\n' | sort -k1,1n::List all installed packages by size
50
apropos ?:command or package:search the manual page names and descriptions
1
dpkg -l ? package Find version of a package
2
df -h File system disk space usage
4
ps aux | grep ? search string Search active processes for search string
5
iwconfig Display wireless network information
6
ifconfig -a Displays the status of the currently active interfaces
7
lsb_release -a What version of Ubuntu do I have?
8
uname -a What kernel am I running
9
sudo apt-get update && sudo apt-get upgrade Refresh update info and update all packages
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)
12
apt-cache search ? package Find information on a package (not installed)
13
sudo lshw List hardware
14
lspci List all PCI devices
15
aplay -l List all soundcards and digital audio devices
16
cat ? path Read File & Print to Standard Output
17
ls ? path List Folders Contents
18
ls -lSr ? path Show files by size, biggest last
19
mv ? ? sourcePath, destinationPath Move (Rename) Files
20
cp ? ? sourcePath, destinationPath Copy File from sourcePath to destinationPath
21
sudo lspci attached PCI devices
22
chmod ? ? permissions, file Change access permissions, change mode
23
chown ? ? owner group, file Change the owner and/or group of each given file
24
dmesg Print kernel & driver messages
25
history Command History
26
history | grep -i ? command search history for a command
27
locate ? file Find files (updatedb to update DB)
28
sudo updatedb update the database for locate
29
which ? command Show full path name of command
30
find -maxdepth 1 -type f | xargs grep -F ? string Search all regular files for 'string' in this dir
31
gpg -c ? file Encypt a file
32
gpg ? file.gpg Decrypt a file
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
42
netstat Print network connections and interface statistics
43
sudo fdisk -l ? disk(usually /dev/sda) List partition tables for specified devices
44
sudo ufw enable Enable netfilter firewall
45
sudo ufw allow ? port Open a port in netfilter firewall
46
sudo ufw deny ? port Close a port in netfilter firewall
47
sudo ufw disable Disable netfilter firewall
48
cat ? ? | sort | uniq > ? file1, file2, file3 combine, sort and remove duplicates from 2 files
49
dpkg-query -W -f='${Installed-Size;10}\t${Package}\n' | sort -k1,1n List all installed packages by size
50
apropos ? command or package search the manual page names and descriptions