CLI cheat sheet

Write tutorials and howtos in here
There are more tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please. Before you post please read this

CLI cheat sheet

Postby carlos on Fri Aug 03, 2007 10:02 am

Just found this great little cheat sheet for CLI commands. http://fosswire.com/2007/08/02/unixlinux-command-cheat-sheet/

Download it, print it and keep it local. Its great for beginners (like myself) who have a hard time remember all of the commands :D
____________ ________ ______ ____ ___ __ __ _
http://www.designdrifter.com
The Purpose of Life is for DNA to reproduce.
User avatar
carlos
Level 5
Level 5
 
Posts: 526
Joined: Thu Dec 14, 2006 4:30 pm
Location: USA

Linux Mint is funded by ads and donations.
 

Postby 67GTA on Fri Aug 03, 2007 10:32 pm

That is handy. Here is a list of Debian/Ubuntu commands that I recorded while I was learning to use Linux. The commands and descriptions are all separated by "=", so don't include the = sign in the commands.

cat /proc/cpuinfo=CPU info
cd=change directory
convert -resize 640x480 -colors 14 wallpaper.png splashimage.xpm && gzip splashimage.xpm=change picture into grub splash.
cp=copy
df -h=disk space usage
etc/gnome/default.list=file of default programs
fglrxinfo=graphics driver info
free -m=memoryusage
glxgears=check 3d graphics
glxinfo=opengl info
ifconfig=network configuration info
killall gnome-panel=kill,refresh panel
locate=find target
lsb_release -a=OS info
lshw=list hardware
ls=list contents
lspci=list pci devices
man command | col -b > file.txt=save man uotput to file
man -f=man title of target
man intro=user commands help
man -k=man file for target
man man=man manual
mkdir=make directory
mv=move
netstat -l --tcp --udp (and then) watch -n 1 netstat -an --tcp --udp=watch port activities
rmdir=remove directory
rm=remove
rm -r=remove all
sudo apt-cache=debian apt library
sudo apt-cache search (search subject)=Search debian repo for apps
sudo apt-get dist-upgrade=upgrade all
sudo apt-get update=update sources.list
sudo cp /<filename.backup>/<filename>=reset to backup file
sudo deborphan | xargs sudo apt-get -y remove –purge=remove orphans
sudo dmidecode | more=Detailed hardware info
sudo dpkg -l | cut -d " " -f 3=list installed packages
sudo dpkg-reconfigure menu sudo dpkg-reconfigure menu-xdg (reboot)=fix Debian menu
sudo dpkg-reconfigure xserver-xorg=Reconfigure periphials, graphics
sudo fdisk -l=View Hard drive partitions
sudo hdparm -l /dev/sda=hard drive settings
sudo hdparm -tT /dev/sda=hard drive speed
sudo ln -s ~/.themes /root/.themes sudo ln -s ~/.icons /root/.icons sudo ln -s ~/.fonts /root/.fonts=make root look like user
top=system,processes,resources,cpu,ram,etc. info
uname -a=kernel version
update-menu=update gnome menu
whereis program-name=location of program/man page
which <program name>=location of program
User avatar
67GTA
Level 6
Level 6
 
Posts: 1308
Joined: Wed Jun 06, 2007 9:49 pm
Location: Kentucky, USA

Re: CLI cheat sheet

Postby dragons.r.scary. on Tue Dec 11, 2007 5:02 pm

if you cant rember a command that you have jused before just type history and u will get a list of all your previous commands
dragons.r.scary.
 

Re: CLI cheat sheet

Postby Zwopper on Sun Jan 27, 2008 5:57 am

...or use the arrow keys - up and down...
Tab comes in handy as well for filling out...
My artwork at deviantART | My Tweet
CREA DIEM!
Lenovo E320 | 8GB | 512GB Samsung 840 PRO - SSD | Lubuntu 13.04
User avatar
Zwopper
Level 10
Level 10
 
Posts: 3099
Joined: Fri Nov 30, 2007 12:20 pm
Location: Deep in the Swedish woods

Re: CLI cheat sheet

Postby muskratmx on Sun Mar 16, 2008 12:07 pm

check out this other post on this board viewtopic.php?f=42&t=9383

There is a whole lot more, the one you listed is amoung them.
User avatar
muskratmx
Level 4
Level 4
 
Posts: 226
Joined: Sun Dec 09, 2007 1:30 pm
Location: TX/MX Gulf Coast

Re: CLI cheat sheet

Postby pete284 on Wed Apr 23, 2008 2:11 pm

FOSSwire have just updated their cheat sheet:

http://fosswire.com/2008/04/22/ubuntu-cheat-sheet
User avatar
pete284
Level 1
Level 1
 
Posts: 36
Joined: Sun Jan 06, 2008 11:04 am
Location: Wrexham, Wales, UK

Re: CLI cheat sheet

Postby MerelyJim on Thu Dec 23, 2010 12:24 am

Thanks!

The command line never goes out of style. :D
Um... you have a back-up copy,right?
My attempt at a blog; http://jims2011.blogspot.com/
MerelyJim
Level 3
Level 3
 
Posts: 121
Joined: Sat Sep 05, 2009 5:03 pm
Location: Fort Worth, Texas, USA

Re: CLI cheat sheet

Postby willie42 on Thu Dec 23, 2010 12:47 am

thanks....that will be very useful for me... :D
Comptia A+ Certified Technician
Comptia Network + Certified Technician
You can not have Success without Failures.
User avatar
willie42
Level 7
Level 7
 
Posts: 1966
Joined: Tue Jun 22, 2010 7:52 pm
Location: Oak Ridge, TN USA

Re: CLI cheat sheet

Postby geazzy on Sun May 08, 2011 8:57 pm

thanks for this :D
geazzy
Level 1
Level 1
 
Posts: 6
Joined: Sun May 08, 2011 5:09 am

Re: CLI cheat sheet

Postby Habitual on Mon May 09, 2011 8:57 am

MerelyJim wrote:Thanks!

The command line never goes out of style. :D


So true!
User avatar
Habitual
Level 7
Level 7
 
Posts: 1609
Joined: Sun Nov 21, 2010 8:31 pm
Location: uid=0(root) gid=0(root) groups=0(root)

Re: CLI cheat sheet

Postby frisil on Mon May 13, 2013 3:37 pm

dragons.r.scary. wrote:if you cant rember a command that you have jused before just type history and u will get a list of all your previous commands


Then you can !+number to repeat a history command, e.g. if history displays
Code: Select all
169  sleep 40m; cd /datastorage/user1/enc/JDownloader ; java -jar /datastorage/user1/enc/JDownloader/JDownloader.jar

just type !169 to do it again. No need for arrow scrolling or retyping.

When looking for some command you partially remember, use
Code: Select all
 history | grep keyword
to only display this, e.g.
Code: Select all
history | grep JDownloader
will find the above command.
User avatar
frisil
Level 3
Level 3
 
Posts: 112
Joined: Wed Feb 04, 2009 10:24 pm

Re: CLI cheat sheet

Postby Jerry on Mon May 13, 2013 5:06 pm

this is fantastic. Glad I came across this thread. And thanks for all the people who made contributions to this thread.
Jerry
Level 1
Level 1
 
Posts: 34
Joined: Fri Dec 28, 2012 11:52 pm
Location: Canada

Re: CLI cheat sheet

Postby crazywhiteguy on Tue May 14, 2013 5:18 pm

Nice thread, thanks alot!
I have been using for some while now hard time remembering ALL the commands so this is very useful :)
crazywhiteguy
Level 1
Level 1
 
Posts: 1
Joined: Tue May 14, 2013 5:12 pm

Linux Mint is funded by ads and donations.
 

Return to Tutorials / Howtos

Who is online

Users browsing this forum: No registered users and 20 guests