Wednesday 6 February 2019

Linux Command Cheat Sheet

Cheat Sheet
Below is a Cheat Sheet of Linux commands we have learned in this tutorial
Command
Description
ls
Lists all files and directories in the present working directory
ls - R
Lists files in sub-directories as well
ls - a
Lists hidden files as well
ls - al
Lists files and directories with detailed information like permissions, size, owner, etc.
cat > filename
Creates a new file
cat filename
Displays the file content
cat file file2 > file3
Joins two files (file1, file2) and stores the output in a new file (file3)
mv file "new file path"
Moves the files to the new location
mv filename new_file_name
Renames the file to a new filename

No comments:

Post a Comment