These are the basic commands used in creating/deleting or working with files and directories….

man mkdir  :It gives the description about mkdir command.In place of mkdir u can give any command to know about that particular command.

mkdir linux  :Creates new directory named linux.

rmdir linux  :removes the directory linux.

rm -r linux  :removes the directory linux eventhough it contains file or directories.

cd linux  :change the directory to linux,which is present in the current directory.

pwd  :prints the current working directory.

cd..   :come out from current directory.

ls  :displays all files and directories present in current directory.

ls -c  :lists all files and directories in the created order.

cat> dinesh  :creates a file named dinesh in the current directory.

cat infotech  :displays the data present in file infotech.

wc dinesh  :displays the no. of lines, word,letters respectively in the file dinesh.

cat>> dinesh  :appends the content to the file dinesh.

cp dinesh ubuntu  :copies the content in file dinesh to the file ubuntu.

mv dinesh ubuntu  :moves the content from file dinesh to file ubuntu.

rm dinesh  :removes the file dinesh.

du dinesh  :displays the file/directory dinesh‘s size.

gzip dinesh  :to compress the file dinesh.

gunzip dinesh  :to unzip the file dinesh.

zcat dinesh  :displays the content of zipped file dinesh.

Note:                                                                                                                                                                                                                                                                      1)In place of dinesh,infotech,ubuntu u can use any name…

2)click ctrl+d to save all the characters before the cursor in the file.

3)click ctrl+z to delete the current line and saves before that line, also terminates an action.