Linux Commands
BASIC COMMANDS
- PWD (print working directory) This is used to show the current directory a user is operating in
- Ls (List) This is used to show what files are in the directory the user is in
- Cd (change directory) This is used for changing the directory the computer user is on
- mkdir & rmdir Use the mkdir command when you need to create folder or a directory Use rmdir to delete a directory, but note that rmdir can only be used to delete empty directories. To delete a directory containing files, use rm.
- rm (remove) Use the rm command to delete files and directories but use the “rm –r” to delete just the directory
- Touch The touch command is used to create a file
- man & --help To know more about a command and how to use it, for example ‘’ man cd ‘’ shows the manual pages of the cd command.
- cp (copy) Use the cp command to copy files through the command line
- mv (move) Use the mv command to move files through the command line
- Locate
The locate command is used to locate a file in linux system just like the search command in windows.
INTERMEDIATE COMMANDS
- echo The ‘echo’ command helps us move data, usually text into a file.
- cat The cat command is used to display the contents of a file.
- nano, vi, jed Nano and vi are already installed text editors in the linux command line. The nano command is a good text editor that denotes keywords with colour and can recognize most languages.and vi is simpler than nano.
- df Use the df command to see available disk space in each of the partitions of your system.
- zip, unzip. Use the zip command to compress files into a zip archive, and unzip to extract files from zip archive