💪 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.

file_type_config command line
ls -sS

cd

Move into the previous directory

file_type_config command line
cd -

pwd

Print the current working directory

file_type_config command line
pwd

echo

Print a value to the stardard output

file_type_config command line
echo "Hi Mom!"

mkdir

Make a deeply nested directory and all it’s parent directories

file_type_config command line
mkdir -p new_directory/subdirectory

touch

Create a new file

file_type_config command line
touch diary.txt

rm

file_type_config command line
rm diary.txt
rm -rf directory_to_remove # use carefully

cat

Read a file

file_type_config command line
cat diary.txt

cp

Copy a file or directory recursively

file_type_config command line
cp -r source_dir destination_dir

mv

Move or rename a file

file_type_config command line
mv diary.txt useless-ramblings.txt

Questions? Let's chat

Open Discord