Revision 2 as of 2007-11-05 18:52:50

Clear message
Edit History Actions Discussion

Howto/FileManagement

File Management

This is work in progress, not complete. Please help and add more stuff!

This is a howto explaining how to manage files on a UNIX system. This is very important to get the most out of your shell account.

Basics

The very basics of file management is how to list, create, copy, move and delete files and directories.

To create a file, you can open up a text editor, write some text, and then save it. To do this with nano, type:

{{{nano myfile.txt }}}

This will open up the text editor nano. Write some text and press ctrl-x to exit, nano will then ask if you want to save the file. You can also use ctrl-o to just save the file, without exiting nano.

You can also use this command to just create a new empty file:

{{{touch newfile }}}

To create a new directory, use this command:

{{{mkdir mydir }}}

To see your newly created files and directories, use the command ls: