Linux Commands Cheat Sheet


14 posts
by spurious » Sat Jun 02, 2012 9:49 am
Posts: 343
Joined: Mon Nov 21, 2011 9:29 pm
by grumpyoldgit » Sat Jun 02, 2012 10:00 am
Not only looks really great but there are plenty of other free downloads on that site that are worth looking into. I've bookmarked the site for further research and printed off the sheet to go on the wall.
User avatar
Posts: 1458
Joined: Thu Jan 05, 2012 12:20 pm
by Robert_M » Sat Jun 02, 2012 10:37 am
Thanks for the link!

One command left off that list, which I (luckily) just found - familiar to Windows users: CTRL + ALT + DEL

I got stuck in something & couldn't remember how to get out, so gave that a go. Yay! Restart!

(p.s. maybe I should say this was in Debian. Not sure if it'll fly in the other flavors.)
I sometimes ride my Pi to the Forum.
User avatar
Posts: 211
Joined: Fri Nov 25, 2011 12:50 am
by AndrewS » Sun Jun 03, 2012 2:38 pm
Robert_M wrote:I got stuck in something & couldn't remember how to get out

Ctrl + C is usually a good bet ;)

(p.s. maybe I should say this was in Debian. Not sure if it'll fly in the other flavors.)

This is determined by the 'ctrlaltdel' line in /etc/inittab
User avatar
Posts: 3021
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
by Robert_M » Mon Jun 04, 2012 12:33 am
I think I tried Ctrl + C in all the mad keybashing (which probably just confused the poor thing...) but the only thing that ultimately popped me out was Ctrl + Alt + Del. I imagine if I had tried Ctrl + C from the start, it would've gone much better. :-)
I sometimes ride my Pi to the Forum.
User avatar
Posts: 211
Joined: Fri Nov 25, 2011 12:50 am
by AndrewS » Mon Jun 04, 2012 12:41 am

LOL, "Force remove fire" ;)
User avatar
Posts: 3021
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
by cheery » Mon Jun 04, 2012 6:44 am
Should I assume these are the most commonly used commands then?
User avatar
Posts: 219
Joined: Wed Jan 25, 2012 9:39 pm
by AndrewS » Mon Jun 04, 2012 9:50 am
cheery wrote:Should I assume these are the most commonly used commands then?

Well, that's what "cheat sheets" are normally for ;)
User avatar
Posts: 3021
Joined: Sun Apr 22, 2012 4:50 pm
Location: Cambridge, UK
by rurwin » Mon Jun 04, 2012 11:19 am
AndrewS wrote:
Robert_M wrote:I got stuck in something & couldn't remember how to get out

Ctrl + C is usually a good bet ;)


If Ctrl+C does not work, try Ctrl+\, it kills the current process harder. In Linux-speak it sends it a SIGQUIT signal, which it is less likely to ignore, instead of a SIGINT signal.
User avatar
Forum Moderator
Forum Moderator
Posts: 2903
Joined: Mon Jan 09, 2012 3:16 pm
by sharpapotheosis » Thu Jun 07, 2012 4:55 pm
CTRL + z often works also, though I believe (correct me if I'm wrong) that it kills the process without killing any processes started by the original process. Should be OK if you're using command line, but don't try it with GUI applications.
Posts: 58
Joined: Thu May 24, 2012 6:47 pm
by jojopi » Thu Jun 07, 2012 5:17 pm
sharpapotheosis wrote:CTRL + z often works also, though I believe (correct me if I'm wrong) that it kills the process without killing any processes started by the original process.
No, Ctrl+Z (SIGTSTP) stops/suspends the foreground process group without killing it. This allows you to type other commands and then continue the stopped job with "fg". Or, if it does not need to read input from the terminal then you can continue it in the background with "bg".

Suspending processes with Ctrl+Z without realising is a common mistake, which causes confusion and gradually wastes memory and other resources. Some programs intended for newcomers disable it to avoid this. For instance, in nano you have to press Alt+Z first to enable Ctrl+Z.
User avatar
Posts: 1965
Joined: Tue Oct 11, 2011 8:38 pm
by Robert_M » Thu Jun 07, 2012 6:45 pm
On the subject of stopping, I've also run across "halt" that seems to shut everything down. It has me wondering if this is a good final step before unplugging the Pi. Does it matter to the machine? Or is the practice of just pulling the plug a non-destructive way of turning it off?
I sometimes ride my Pi to the Forum.
User avatar
Posts: 211
Joined: Fri Nov 25, 2011 12:50 am
by rurwin » Thu Jun 07, 2012 6:55 pm
You should use halt before turning the Pi off. Otherwise you run the risk of corrupting the SD.

Another thing that should have been made clear in the documentation.
User avatar
Forum Moderator
Forum Moderator
Posts: 2903
Joined: Mon Jan 09, 2012 3:16 pm
by carfin33 » Fri Jun 08, 2012 3:22 pm
[size=200]do you have an ipod if you do get linux command reference light clean and so interesting i wish windows could the emacs games command!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :D :) :D :) :D :) :D
><
Is this thing on?
Posts: 21
Joined: Thu May 31, 2012 4:52 pm