Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
qtramana@gmail.com
Operating System:
Aix by IBM
Macos by apple
Red hat linus by red hat s/w
Solaries by sun solaries
Multiuser Capability
Multitasking Capability
Communication
Security
Portability
Terminal
Terminal
Host Machine
Several users can use the same computer
simultaneously i.e. , more than one keyboard and
terminal can be connected to one computer.
The same data to be shared by all
At file level
User
Shell:
The shell reads your commands
Shell
And interprets them as a requests
Kernel
Hardware
And then conveys them to the
kernel which ultimately execute them
who : To display data about all the users who have logged
into the system currently.
This creates a file called file1 , the size of the file would be zero
bytes.
Note: touch does not allow you to store anything in a file.
It would be overwritten
Syntax: rm filename
Ex: rm file1
It removes file1.
rm i filename i- interactively
mkdir p dir1/dir2/dir3/dir4
Changing directory:
rm r directory name
Rename a file:
If you want to rename the file test to sample we would say:
mv test sample
Syntax: wc filename
Wc l file1
Wc file1
ls
Ls l
- rwx r- - r- -
Permissions weight
R- read -4
W- write -2
X- execute -1
2.Sort
3.cut
Options
Tail : Tail prints the last N number of lines from given input. By
default,
it prints last 10 lines of each given file.
The UNIX diff command compares the contents of two text files
and
it's telling you how to change the first file to make it match the
second file.
lines preceded by
The three dashes ("---") separate the lines of file 1 and file 2.
"Lines 1 through 3 in the first file need to be changed in order to match lines 1 through
3 in the second file."
"You need to delete line 4 in the first file so that both files sync up at line 3." It then sho
line 4 from the second file." It then shows us what that line is.
vi filename
Where filename is the name of the file you want to edit. If the
file does not exist, vi will create it for you. You can also start
vi without giving any
filename. In this case, vi will ask for one when you quit or save
your work.
While working with vi editor you would come across following two
modes:
1. Command mode
2. Insert mode
3. ex command mode
This is the default mode in this mode all the keys pressed by the user
are interpreted to be editor commands.
2. Insert mode:
3. ex command mode:
Note that in the bottom, vi indicates that you are in insert mode.
After entering text, press ESC to return to command mode.
Saving Your Work and quit (write and quit):-- :wq (press enter)
:q (quit)
:q! (forceful quit)
Command Significance
:w Will write the contents of editing buffer into the file
ZZ Equivalent to :wq
:q Quit
Command Significance
Command Significance
Command Significance
yw Yanks a word