Basic Linux Commands
Basic Linux Commands
# pwd -> present working directory - checks the current/ present directory where you
asre working
# ls -> lists all the files and folders in the current directory
# ls -la -> Long listing of files and folders including hidden files and folders in
the current directory
# rmdir <dir_name> -> Removes the directory (if the directory is empty)
# vim -> Power tool/ editor for text files used in command line.
eg:
vim a.txt -> To open the file.
i -> To go to insert mode
esc -> To exit the insert mode
:wq -> Saves and exit the file
:q -> Exits the file without saving
:wq! -> Forcefullt saves and exits the file
:q! -> Forcefully exits the file without saving
# cat <file name> -> command to see the content of the file.
eg:
cat a.txt