If you have any suggestions or criticisms, feel free to comment them.
Being plain text, it’s much easier to read on a wide screen, or on something without line wrapping.
This is really good. Clear and well laid out.
The only thing that might confuse some beginners is your specific choice of package manager.
I added more information to the installing software section, updated section title to specify Arch Linux, and added another section for Debian and Derivatives.
You’re awesome.
Thanks for all the feedback! I’m much happier with it now, and I’ll probably continue to make small changes over time.
I find the references to file extension kinda confusing. Extensions mean a lot less in Linux cli, but I can tell youre just using them for examples. Maybe give more concrete examples instead.
ls *.sh
to list all the files ending in.sh
I updated various examples, and replaced <file extension> with <text> in most places and removed it from the legend.
would you upload this on github?
Done? I’ve never uploaded to GitHub before, and I was just doing what I thought I should do. I’ll do my best to keep it updated with the version on my website.
https://github.com/ordinarybyte/linux_cheat_sheet
Is there a way to make GitHub automatically detect changes to the file at cerium.cc and update the repo? Or do they not allow that? I know a scheduled script would be able to work but I don’t really want to have to run it myself.
You can do some automation with GitHub Actions, but I have no idea if it can do specifically that
Usually you would go the other way around. Merge changes into git and then distribute from there.
I don’t know how this would be useful to someone reading the cheat sheet, but here’s something interesting I just indirectly found out while skimming it through:
Ctrl+D
does the same thing asENTER
, except the latter additionally sends the end-of-line character to the reader while the former sends nothing;
as is the case for shells or interactive programs like the Python REPL,Ctrl+D
causes them to terminate only because it sends a string that is 0 characters long, and 0-size reads are universally interpreted as files reaching the end.To test this: enter
cat
, type “hello” without pressing enter, thenCtrl+D
: you should see “hellohello”.
An extremely rare case of this being useful would be using netcat to send a string somewhere, without sending the end-of-line byte at the end.I updated “Log out” to “Exit (sends a signal indicating the end of a text stream)”. Which I think is a lot more accurate, and still easy to understand.
This is fantastic. Just at a glance I already learned something new! Definitely keeping this for reference.
What do you mean about “/ root directory, eg /usr/bin/bash”? / is /, just the top-most directory
I added more detail to the description and made a more relevant example. (I think)
cd -
changes to the previous directoryDoes
cd +
work to go forward after usingcd -
?cd -
negatescd -
, so you’re right back where you started! It’s like multiplying 2 negatives.
Aren’t
Alt + Backspace
, andAlt + Arrow Key Left/Right
also terminal shortcuts?I like your version, I am bookmarking it.
You might consider putting a license on it
You’re a prince among men.
And an Albert among princes.
I owe you bigly
Awesome! Thank you kindly
This is really helpful, thank you.
A little over a decade & a half and I find that very useful. Should have GPG in for reading signatures on software and such too. If you’d like I can contribute to GPG terminal as I’ve been using it for a good portion of that time.