DEV Community

Discussion on: Basic UNIX commands

Collapse
 
pbkarlsson profile image
Philip Karlsson

I'd like to recommend this NPM module: npmjs.com/package/tldr

It's basically like the 'man' command, but usually with a shorter description and example uses. For example, 'tldr tar' will tell you which flag combination you need to extract different types of compressed archives.

And I'll add another few commands that I use daily:
ls -a | Basically like ls, but also displays hidden files.
rm -rf

| When you want to delete a non-empty directory, use with caution!
mkdir dir/{subdir1,subdir2} | Use curly braces to create multiple subdirs at once.
cd | Just typing cd is the same as 'cd ~', which brings you to your home directory.
cat | Will print to contents of a file to the console, so you don't have to open the file just to view it.

Also, check out your .bashrc by typing cat ~/.bashrc, in there you'll find several bash aliases, as well as having the possibility to create your own.

And again, don't use rm -rf, if you're not 100% certain that you know what you're doing.