See more about this on the SILS ITS help page.
set permissions home directory create directories and file literacy
set permissions home directory create directories and file literacy
There are several commands that you will use to create directories and files.
These are (again) command line commands. They all have options, and they all take one or more arguments. In UNIX parlance, an argument is a file or directory name, or some other piece of information needed to complete the command.
To step up one level from a directory, you want to use the command ../
This tells the server to step up to the parent directory.
We will look at the arguments.
type the make directory command mkdir
followed by the name you want the directory to have. This looks like:
mkdir mynewdir
In this case, mynewdir is the argument for the mkdir command.
the argument is the name of the directory you want to remove. Try it.
rm for removing a file takes one argument, the name of the file.
each take two arguments.
In the copy command,
the first argument is the name of the file you wish to move or copy,
the second argument is the name of the file you want to copy into or move the file to.
cp mynewfile mynewfile1
makes a copy of the file named mynewfile and names it mynewfile1
The move command is essentially a rename command.
The arguments are not limited to file and directory names in the local directory. An argument can specify another directory and a file in that directory. For instance, if you have a directory called public_html (which you should), then you can move a file from your home directory into this directory as follows.
mv thisfile public_html/
If in addition to moving the file, you want to rename it,
then the new file name can be typed following the slash, as follows:
mv thisfile public_html/thatfile
set permissions home directory create directories and file literacy
These are commands commonly used. You will find them valuable when you work within a UNIX system, and for other UNIX tasks as well. Remember: UNIX is case-sensitive
Commands can have arguments and options. Options usually have a hyphen.
Most common errors in UNIX come from not knowing what directory you are in. Use the pwd and ls commands to keep track.
Use the man command to get usage information
set permissions home directory create directories and file literacy
Copyright © R.E. Bergquist 2014- | Last Updated on | Powered by w3.css