Useful Commands

Useful Commands

Useful Commands

by Rakib Ahsan -
Number of replies: 0

ID: 153-15-6621


1. What is Command?

Answer: A command is a directive to a computer program to perform a specific task.


2. Why we use command?

Answer: We use command so that we can perform almost all the same tasks that can be done with a GUI.


3.   How can we find detail information of any command?

Answer: Using "man" command we find detail informations


4. List all essential "file" commands with it's use 

Answer

ii) Below are the list of essential file commands:-

mkdir - to create any folder.

rmdir - to delete any folder.

rm -r - to delete any folder if their is any file under in it.

cp - to copy any file from one to another path.

mv - to move any file from one to another path.

echo - to print something.

gzip - convert any file to zip.

gunzip - convert any zip file to its usual format.

touch - to create any file with any extension like .txt etc.

nano - to open a text editor to edit the text under the file.

cat - to show the text under the file into the terminal.

cat>> - to append two files text/data into one.

ls -l - to check the permission of files under the pwd.

chmod - to change the mode of any files like read , write or execute.


i) Below posted the snaps of my terminal for every use of commands:-

Attachment Screenshot (14).png
Attachment Screenshot (15).png
Attachment Screenshot (16).png