Commands
A collection of useful Linux commands and how to use them.
The Usual Suspects
man
- what does the ____ command do?
man
- what does the ____ command do?The man
command allows the user to view the manual of any command that has one. Try it out with man man
, you'll see a list of uppercase informative sections including NAME DESCRIPTION and OPTIONS.
cd
- how do i get around?
cd
- how do i get around?The change directory command lets you move between directories.
ls
- show me everything in this directory
ls
- show me everything in this directorypwd
- where am i?
pwd
- where am i?mv
- let's move this file
mv
- let's move this filerm
- i would like to destroy this file or directory
rm
- i would like to destroy this file or directoryalias
- i want to make my own cool linux commands
alias
- i want to make my own cool linux commandsThe IO Stuff
cat
- print all the things!
cat
- print all the things!less
- i want to look at a file in my terminal without using a text editor
less
- i want to look at a file in my terminal without using a text editorhead
- only show me the top part
head
- only show me the top parttail
- only show me the bottom part
tail
- only show me the bottom partPrints out the last 10 lines of the input by default.
-n
specify the number of lines to output-f
preventstail
from closing and waits for additional output; useful for printing out a file as it is appended to
The Super Powerful Ones That Don't Make Sense
sed
- i want to edit a stream of text
sed
- i want to edit a stream of textLast updated