💪 10 Essential Commands
Ten Linux commands and tricks you absolutely must know
Which flag would be used with mkdir foo/bar/baz
to create all missing parent directories
Ten Linux Comands && Useful Tricks
ls
List all files, but sorted by size and print the size.
command line
ls -sS
cd
Move into the previous directory
command line
cd -
pwd
Print the current working directory
command line
pwd
echo
Print a value to the stardard output
command line
echo "Hi Mom!"
mkdir
Make a deeply nested directory and all it’s parent directories
command line
mkdir -p new_directory/subdirectory
touch
Create a new file
command line
touch diary.txt
rm
command line
rm diary.txt
rm -rf directory_to_remove # use carefully
cat
Read a file
command line
cat diary.txt
cp
Copy a file or directory recursively
command line
cp -r source_dir destination_dir
mv
Move or rename a file
command line
mv diary.txt useless-ramblings.txt