ls
| lists all files in your directory (like dir)
|
ls -l
| show all attributes (such as size, date created, and permissions) |
ls -a
| list all files (including those that begin with . )
|
Copying and deleting files
cp file1 file2
| copies file1 into file2 |
rm file
| deletes file |
/ instead of the backslash for
subdirectories).
Creating and deleting directories
mkdir directory
| creates a new subdirectory called directory |
rmdir directory
| deletes that directory (but only if all files in it have been deleted). |
Changing the current directory
Like DOS, you can navigate through your directories using the cd
command.
cd directory
| takes you to directory (if it is a subdirectory of the current one) |
cd ..
| takes you back up to the directory of which your current directory is a subdirectory |
cd
| returns you to your root directory. |
Copying and directories
You can also copy and move files from one directory to another using
cp. For example:
cp file directory
| will make a copy of file in directory directory (as long as directory is a subdirectory of your current location). |
cp directory1/file directory2
| will copy of file from directory1 into directory directory2. |
cp ../file1 file2
|
Will copy file1 from the directory below the current one, into
|
ftp option in Windows. This can be reached by the
following procedure:
tn to UNIX).
This will bring up the ftp window. From here:
At this point, you now have access both to your UNIX account (shown on the left) and to the PC (shown on the right).
a: drive from the options on the right.
You are now ready to copy a file. To do this: