next up previous contents index
Next: File Permissions Up: Shell Basics Previous: File Structure   Contents   Index

Simple File Operations

For all the commands below, you can execute them simply by typing them at your prompt. Note that many commands require an argument; that is, if you were creating a new directory, you would have to give the mkdir command the name of the new directory you wished to make.

A couple of final caveats about files and commands. Unix is case-sensitive. Almost all Unix commands are lower-case. Another suggestion - be careful when using non-alphanumeric characters. * and ? are used as wild-card characters for instance. Avoid spaces in Unix file names. Instead consider using the underscore character (like my_first_try). Finally, be careful when you copy or move files. Unix will allow you to easily overwrite files with the same names. In the example for cp above, if you already had a file named file2, it would be lost when you copied file1 to file2. You can have Unix warn you about overwriting files if you use the -i option when using cp or mv. This will put you into an interactive mode where you will be prompted if you are about to overwrite a file.


next up previous contents index
Next: File Permissions Up: Shell Basics Previous: File Structure   Contents   Index
Mohammad Ahmed 2003-07-23