UNIX is an operating system developed by AT&T Bell LABS in 1969. Today the term Unix is used to describe any operating system that conforms to Unix standards, meaning the core operating system operates the same as the original Unix operating system. During the late 1970s and early 1980s, the influence of Unix in academic circles led to large-scale adoption of Unix (particularly of the BSD variant, originating from the University of California, Berkeley) by commercial startups, the most notable of which are Solaris, HP-UX and AIX.
And I think, in order to mastering the SUN Solaris OS, we definitely need to know some of the very basic UNIX commands :D
First thing to remember: UNIX is case-sensitive.
COMMAND and command are not the same
FILES
ls | lists your files |
ls -l | lists your files in 'long format', which contains lots of useful information, e.g. the exact size of the file, who owns the file and who has the right to look at it, and when it was last modified |
ls -a | lists all files, including the ones whose filenames begin in a dot, which you do not always want to see |
more filename | shows the first part of a file, just as much as will fit on one screen |
emacs filename | is an editor that lets you create and edit a file |
mv filename1 filename2 | moves a file |
cp filename1 filename2 | copies a file |
rm filename | removes a file. It is wise to use the option rm -i, which will ask you for confirmation |
diff filename1 filename2 | compares files, and shows where they differ |
wc filename | tells you how many lines, words, and characters there are in a file |
chmod options filename | change the read, write, and execute permissions on your files |
gzip filename | compresses files |
gunzip filename | uncompresses files compressed by gzip |
gzcat filename | lets you look at a gzipped file without actually having to gunzip it |
lpr filename | |
lpq | check out the printer queue |
lprm jobnumber | remove something from the printer queue |
genscript | converts plain text files into postscript for printing |
dvips filename | print .dvi files |
For further explanation check the manual page.
root@ult10 # man command
...to be continued
No comments:
Post a Comment