Here's a brief guide on how to use each of the mentioned commands:
-
pwd: To display the current directory you are in.
pwd -
ls: To list files and directories. You can add options like
-lfor detailed information or-ato show hidden files.ls -l ls -a -
cd: To change directories. Replace
/path/to/directorywith the actual path.cd /path/to/directory -
mkdir: To create a new directory. Replace
new_directorywith your desired directory name.mkdir new_directory -
rm: To remove a file. Use
-rto remove directories recursively.rm file.txt rm -r directory_name -
cp: To copy files. Replace
source.txtanddestination.txtwith your file names.cp source.txt destination.txt -
mv: To move or rename files. Replace
old_name.txtandnew_name.txtwith your file names.mv old_name.txt new_name.txt -
cat: To display the contents of a file. Replace
file.txtwith your file name.cat file.txt -
man: To view the manual for a command. Replace
command_namewith the command you want to learn about.man ls -
top: To view running processes and system resource usage. Just type:
top
You can enter these commands in your terminal to perform the respective actions. Remember to check the manual pages (man command_name) for more options and details on each command.
