$mkdir [ directory name ]
mkdir command is used to create new directory. Let’s create a example directory.
$cat > [file name]
This command can be used in three way to see the matter of file, to create a new file or to append the matter of file.
$cat [file name] ------------------------ To see the matter of file
$cat > [file name]---------------------- To create a file
$cat >> [file name ]-------------------- To append the matter of file
$cd [ destination directory path]
It is easy to change directories in Linux. Just use cd and name the absolute path of the desired directory. If you use the relative path, just remember that your final destination depends on the present working directory.
$cd ..
this command is used to exit from current directory.
$cp
The cp (copy) command allows you to take the contents of one file and place a copy with the same or different name in the directory of your choice
$mv
While you can't rename a file in Linux, you can move it. The mv command essentially puts a different label on a file
$rm
rm command is used to remove the regular files. It will ask before removing files.
$rmdir
it will remove the empty directory. If directory is full then use
rm –rf [directory name]
0 comments:
Post a Comment