Command | Example | Description |
---|---|---|
!! | echo !! !! | Display last command in terminal |
annotate-output | annotate-output my.sh | Run program and annotate STDOUT/STDERR with a timestamp |
application defaults | gksudo gedit /etc/gnome/defaults.list | |
avconv | avconv -i input.m4a -vcodec copy \ -acodec copy -ss 00:04:00 -t 00:09:30 \ -vn TrimmedVideo.m4a |
Trim a video starting at 4:00 minutes and 9:30 minutes long |
avconv | avconv -i "in.m4a" -acodec libvorbis -aq 3 \ -ss 00:01:15 -t 00:27:56 -y \ -vn -ac 2 "out.ogg" |
Trim a video starting at 01:05 minutes and 27:56 minutes long and convert. |
/etc/aliases | Aliases e.g. for emails | |
<alt> F2 | Run application window | |
<ctl> <alt> F1 | 1st console | |
apt-get | sudo apt-get -qy upgrade | Update packages |
blkid | sudo blkid | Get UUID etc data |
cabextract | Extract M$ CAB file | |
ddcprobe | sudo ddcprobe | Gets monitor information, see xrandr |
dmesg | dmeseg | grep DMA | Display Kernel Messages |
dmidecode | sudo dmidecode | BIOS information |
dpkg-reconfigure | Reconfigure an already installed package | |
ethtool | sudo ethtool eth0 | Display network card settings |
eject | eject /dev/sr0 eject -i off | Eject CD If drive won't open |
fdisk | sudo fdisk -l | Display disk info |
fg | fg 1 | Start stopped/paused processes |
free | free -m | Free memory display |
ftp-upload | echo password | ftp-upload -h ndrw.co.uk -s -u user -d /public_html/test/ a.txt | Batch FTP Uploads a.txt to /public_html/test/ cURL is another method |
gconf-editor | apps->nautilus->preferences | Turn off USB automount |
get_iplayer | get_iplayer --type=radio --pid=b007jm9l --modes=flashaaclow; get_iplayer --type=tv --pid=b01dlc4f | Download BBC iplayer program |
gmenu-simple-editor | Menu editor | |
gnome-desktop-item-edit | gnome-desktop-item-edit --create-new ~/Desktop | Create A Desktop Shortcut |
gnome-panel& | Start top panel | |
gtf | gtf 1600 1200 75 | Calculate VESA GTF mode lines, for xorg.conf |
iftop | Display bandwidth usage on an interface by host | |
hdparm | hdparm -tT /dev/sda1 | Hard disk throughput test |
ifconfig | Display/Configure network addresses Get MAC details | |
iotop | Monitor hard drive activity | |
last | Last login display | |
ldd | List shared library dependencies of an exe file | |
logger | Logs/writes to log file | |
lshw | sudo lshw | List hardware |
lspci | List info about pci devices | |
lsusb | List usb devices | |
mailx | Send/Check Emails | |
mandb | Creates apropos index | |
md5sum | echo -n secret | md5sum | sed s/' -'// | Creates md5sum of the word 'secret' |
mount | sudo mount -o loop file.iso> /media/cdrom | Mount iso image as a drive |
mount CD/DVD | sudo mount /dev/sr0 /media/cdrom | Mount CD/DVD it auto fails |
mtools | Label SD cards etc. Config file /etc/mtools.conf | |
netstat -a | Show all sockets | |
network restart | service network-manager restart ifdown eth1 ifup eth1 | |
nmap | nmap -sn 192.168.1.0/24 | Find all machines on the network |
perl modules | perl -MCPAN -e 'install Geo::Coordinates::OSGB' | Installs a Perl module from CPAN |
ping | ping 239.255.255.250 | Ping Multicast Group IP address Find WIFI Extender et. al. |
renice | renice -n priority -p pid | Change process priority |
rkhunter | rkhunter --propupd | Root kit checker daemon --propupd to update all references |
run-parts | Run all scripts in a directory | |
shut X | kill x-session-manager | |
shutdown | shutdown -P now | Force shutdown |
ssh | ssh -X user@host | Remote X client |
startx | startx -- :1 sudo service lightdm restart | Start new X Server |
sudo -b | Run prog as background task | |
tcpdump | Sniffer dumps network traffic | |
timeoutd | Enforce idle and session time restrictions | |
tune2fs | sudo tune2fs -l /dev/sdb1 | List/tune filesystem parameters |
uname | uname -a | Display system info |
w3m | text baed browser Gets header etc. | |
xrandr | xrandr --verbose | Gets monitor information, see ddcprobe |
zenty | Display GTK+ Dialog boxes |
Description |
---|
Apache |
Backup Disks |
Bacula |
Console Font |
Files |
Floppy Mount |
FTP Server |
Hard Disk Tools |
hdparm |
locale |
Man Creation |
Monitor/Display |
mount |
MySQL |
RS232 |
Shutdown |
Tools/Packages |
To ~/.xprofile add this line 'export LIBOVERLAY_SCROLLBAR=0'
In Adobe Acrobat (acroread), and other programs, sometimes no drop down menus are displayed, to fix this in the startup script e.g. '/usr/bin/acroread' insert
UBUNTU_MENUPROXY=0
Use Configuration Editor, apps>metacity>general>button-layout, e.g. add ',spacer' move to opposite side etc.