touch <name> - Create a file with the given name along with extention(optional).

mkdir <name> - Used to create directories.

tree <location> - Show a tree structure of the files and folder inside given location.

mv <file/directory> <renamed file/directory> - Used to rename a file or folder.

mv <file/directory> <new location> - Used to move files from one place to other

cp <file_to_be_copied> <file_destination> - Copy the file to the destination.

rm - Used to remove files and folders

rmdir - Used to remove folders.

Editing files

Nano

It is a very basic pager type text editor used by beginners to edit text files

nano - Open an empty file

nano <filename.extention> - Open the given filename in the text editor (create the new file with given name, if not present).

Shortcuts in nano editor ( ^ = control in the text editor shortcuts)

Shortcut Key Uses
Ctrl + W Search, find or where is.
To jump next match we can continue pressing the shortcut to go next next
Ctrl + O Save the file after confirming the file name.
Ctrl + X To exit from the editor.

VIM

Vim is an open-source editor for all kinds of ASCII text.

Vim provides an interface to external programs, such as grepawksed, etc., which can handle their specific tasks much better than a corresponding function directly implemented in an editor usually can.

Vim is a modal editor that can distinguish between text and command input.

There are 6 fundamental modes in VIM editor.