Copying, moving and renaming files in deepOfix

Using Shell commands

Bourne shell (bash) is the default console program in deepOfix. Once logged in, you can supply commands for copying, moving or deleting files by typing commands at the command prompt.

Copying

demo:~# cp <original-filename> <filename-of-copy>

The above command copies the contents of the first filename specified to the second filename specified.

Moving

To move files, you may use the mv command as shown below:

demo:~# mv <filename> <folder-path>

Replace <filename> with the filename of the file to be moved. Replace <folder-path> with the path of the destination folder. The file should be moved to the specified folder upon running the above command.

The mv command can also be used to rename files as follows:

demo:~# mv old_filename new_filename

This command renames old_filename as new_filename.

Deleting

To delete a file, use the rm command as follows:

demo:~# rm <filename>

This command will remove the file specified in place of <filename> from the current folder.

More Assistance

For more information, use the manual pages for each command:

demo:~# man cp
demo:~# man mv
demo:~# man rm

Using Midnight Commander

Users of Midnight Commander can perform file copy, delete and move files in the deepOfix file system tree using the command:

demo:~# mc

This opens the Midnight Commander program and facilitates file management operations.

 
help/command-line/copying-renaming-and-deleting-files.txt · Last modified: 2009/07/25 17:36 by gaurav     Back to top