Live data from Hacker News

Most Important Linux Commands Cheatsheet

github.com

1–10 of 13 posts

Re: Most Important Linux Commands Cheatsheet

#2
Thank goodness for Linux. Where would UNIX and BSD be without the most important Linux commands? I kid. No Linux commands listed, only shell commands. I'd like to initiate a cutesy repeatable Ghostbuster's themed meme: There is no Linux. There is only shell. Maybe if it is popular enough, the zealots will stop insisting GNU/Linux is the center of the cosmos, but I doubt it.

Re: Most Important Linux Commands Cheatsheet

#3

Thank goodness for Linux. Where would UNIX and BSD be without the most important Linux commands? I kid. No Linux commands listed, only shell commands. I'd like to initiate a cutesy repeatable Ghostbuster's themed meme: There is no Linux. There is only shell. Maybe if it is popular enough, the zealots will stop insisting GNU/Linux is the center of the cosmos, but I doubt it.

Everything you said is true but for absolute noobs who want to get started with Linux, this is useful

Re: Most Important Linux Commands Cheatsheet

#5
As a start to using shell I recommend learning (roughly in order):

man

grep

sed

find

piping and redirect

xargs

looping

Knowing the basics of those unlocks a lot of the power of the shell. You can you them to brute force your way through most problems as you learn more.

Re: Most Important Linux Commands Cheatsheet

#6
I would tweak the redirect info to have “xxx &> file” in there since that’s one that is often confusing to people early on that want to output stdout and stderr to a file and are confused about how to do that. But yea the list of stuff here is a nice starter list for sure.

Re: Most Important Linux Commands Cheatsheet

#8
post #6

I would tweak the redirect info to have “xxx &> file” in there since that’s one that is often confusing to people early on that want to output stdout and stderr to a file and are confused about how to do that. But yea the list of stuff here is a nice starter list for sure.

Thanks, good idea. I will add that one.

Re: Most Important Linux Commands Cheatsheet

#9
I know that people like to use ctrl-R to search backwards through history, but I am very zealous about using the up-arrow to search through your history instead (in your .bashrc):

bindkey "^[[a" history-beginning-search-backward

bindkey "^[[B" history-beginning-search-forward

Re: Most Important Linux Commands Cheatsheet

#10
Pedantic note about ctrl+d: it doesn’t mean logout. It sends and EOF character.

Said EOF is honoured by your TTY, which closes the FD this ending the session.

You can see this by typing `cat -` and ending it with ctrl+d. The windows equivalent is ctrl+z.

Post reply on HN