Linux Commands you need to know
There are just a few basic commands you need to learn, and then some linux programs that will aid you in logging in logging into or keeping access to the machine.
Basic commands
I hope you have a basic knowledge of DOS, that would help a bit, and I will assume that you already do in writing this manual.
DOS Commands you are used to first:
REMEMBER: unix is case sensitive, so if I here use lower case you must also, if I use a space you must also. DOS will let you get away with allot of things but unix will not!
DIR/W = ls
DIR = ls -l
DIR/AH = ls -al AH=(hidden) -al=(include hidden files as well as regular)
RENAME = mv
ATTRIB = chmod
MD = mkdir
RD = rmdir
DEL = rm
COPY = cp
These are the basic commands, i suggest that you lookup the man pages on each one of these commands from your unix shell. You would do this by typing 'man command' without the ''. e.g. 'man ls' for detailing of commnad 'ls'
each one of these commands will have switches for them, like cp -R to copy files and directories. So you would type man cp to get all of the switches you can use with the copy command.
cd {then press enter} will always take you to your home directory
cp filename $HOME will copy the file to your home directory
cd ~username will take you to that users home dir if you have access to bethere
pwd {press enter} will show you what directory you are in.
Basic commands
I hope you have a basic knowledge of DOS, that would help a bit, and I will assume that you already do in writing this manual.
DOS Commands you are used to first:
REMEMBER: unix is case sensitive, so if I here use lower case you must also, if I use a space you must also. DOS will let you get away with allot of things but unix will not!
DIR/W = ls
DIR = ls -l
DIR/AH = ls -al AH=(hidden) -al=(include hidden files as well as regular)
RENAME = mv
ATTRIB = chmod
MD = mkdir
RD = rmdir
DEL = rm
COPY = cp
These are the basic commands, i suggest that you lookup the man pages on each one of these commands from your unix shell. You would do this by typing 'man command' without the ''. e.g. 'man ls' for detailing of commnad 'ls'
each one of these commands will have switches for them, like cp -R to copy files and directories. So you would type man cp to get all of the switches you can use with the copy command.
cd {then press enter} will always take you to your home directory
cp filename $HOME will copy the file to your home directory
cd ~username will take you to that users home dir if you have access to bethere
pwd {press enter} will show you what directory you are in.
No comments:
Post a Comment