What is Unix?. A multi-user networked operating system “Operating System” Handles files, running other programs, input/output Just like DOS or Windows “Networked” Designed for server use Networking is an intrinsic part of the system “Multi-user”
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
This tutorial provided by UW ACM
http://www.cs.washington.edu/orgs/acm/Questions to ethel@cs, awong@cs
[prompt]$ <command> <flags> <args>
attu1:/u15/awong$ ls –l -a unix-tutorial
Note: In Unix, you’re expected to know what you’re doing. Many
commands will print a message only if something went wrong.
fiji:/u15/awong$ man –k password
passwd (5) - password file
xlock (1) - Locks the local X display until a password is entered
~ Your home directory
.. The parent directory
. The current directory
Note: Both of these commands will over-write existing files without warning you!
To see the permissions on a file, do a ‘ls –l’
attu4:/u15/awong$ ls –l
-r--r--r-- 1 awong ugrad_ce 17375 Apr 26 2000 rgb.txt
-rw-r--r-- 1 awong ugrad_ce 17375 Apr 5 02:57 set10.csv
drwxr-xr-- 1 awong ugrad_ce 1024 Jan 19 19:39 tests
chmod [ugo]+[rxw] <filename>
e.g. chmod u+w rgb.txt gives me permission to change rgb.txt
chown <user>.<group> <filename>
e.g. chmod awong.iuns rgb.txt iuns group now owns rgb.txt
Note: You cannot change which user owns file, unless you are an administrator, for security reasons.
attu4:/u15/awong$ ls –la ~
drwxr----x 1 awong ugrad_ce 1024 Jan 19 19:39 .
drwxr-xr-x 1 root root 17375 Apr 26 2000 ..
-rw-r--r-- 1 awong ugrad_ce 17375 Apr 5 02:57 readme.txt
-rw-rwxr-x 1 awong ugrad_ce 17375 Apr 5 02:57 myprog
For users ethel.ugrad_ce, jjlin@ugrad_cs, and awong.ugrad_ce:
* Zero or more characters
? Zero or one character
Knowing the basics of emacs and vim will help with the rest of Unix; many programs have similar key sequences.
attu4:ehsu% g++ -Wall –ansi –o hello hello.cpp