Basic Linux Commands

2018.08.05
I know I haven’t written in a while as school and work have picked up this this summer (writing a scientific paper is no joke! ). But I still wanted to write something, even if its basic AF. So here is a list of basic AF linux commands you should know. Hopefully someone finds values with these. :]
ls
list items in current directory

ls -la
list items in current directory and show permissions to items

pwd
shows path of current directory you're in

cd
change directory [/to/this/directory]

cd ~
change directory, (all the way to the root folder)

mkdir
make new [/directory]

mv
move [this file] [/to/this/directory]

cp
Copy [this_file] [/to/this/directory]

scp
Secure copy [this_file] [/to/this/directory]

rm
remove [this_file]

cat
Display the contents of[this_file]

head
Display the first 10 lines of file

tail
Display the last 10 lines of file

gzip -v
Compress (verbosely) [this_file]

gzip -d
Decompress [this_file]

tar -cvf
Compress (create, verbose, force) [this_file]

tar -xvf
Extract (verbose, force) [this_file]

man
Manual for [this_resource]

*
All items

|
Pipe results

grep
After Pipe | Grab lines with [this_variable]

>>
Direct results of [this_command] >> [to_this_file]

Leave me a comment if you DID find value, or message me on Twitter or Instagram! 🙂



< >