Unix Notes
Unix Notes
* What is UNIX
UNIX is a CUI(Character User Interface) operating system.
Operating system is an interface between hardware and application software.
* Features of unix
1) Multi user capability
2) Multi tasking capability.
3) Programming facility.
4) Portability.
5) Communication [Email]
6) Security
7) Help facility.
1) Multi tasking capability:-multi user operating system means more then one user shares the
same system resources(hard disk,memory,printer,application software etc.,) at the same time.
2) Multi tasking capability:-UNIX come to many jobs at once dividing the processes time
between the tasks so quality that it looks us if everything as remaining at the same time this is
called multi tasking capability
3) Programming facility:-unix operating system provides shell. Shell works like programming
language.
4) Portability:-one of the main reasons fro universal portability of unix is that it can be move
easily from one hardware platform to another
5) Communication:-unix provides electric mail(E mail)
6) Security:- unix provides three several of security to protect data.
I) assigning passwords and login names to individual users. Ensuring that no one can come
and have access to your work.
II) At the file level there are read,write and execute permissions to each file which decided
who can access a particular file who can modify it and who can execute it.
III) There is file encryption. This utility encodes your file into an unreadable format. So that
even if someone successed in operating it your security as safe.
7) Help facility:- unix provides manual pages for unix commands.
/ROOT:- this is the root directory of the file system the main directory of the entire file system.
/DEV:-this contains the device files that include terminals,printers and storage devices.
/LIB:-this directory consists all the library functions provide by unix for programmers.
/HOME:-this consists the home directories and files of all users.if your log in is techno,your default
home directory is /HOME/TECNO
LOGIN PROCESS:-
Login : Tec no
Password : Tec no soft
#:- system administrator prompt
$:-user working prompt
Basic commands:-
7) WHO:- to display the information about all the users whos have logged into the system currently.
I.e each user login name,terminal number, date & time that the person logged in
2021-09-05 date
10:49 TIme
FINGER:- it display complete infromation about all the users who are logged in
1) TOUCH
2) CAT
1) TOUCH FILE NAME:-
It create zero byte file size
Ex:- touch sample
* the size of sample file is zero bytes.
* touch does not allow you to store any thing in a file it is used for to create several empty files
quickly.
Ex:-Touch file1,file2,file3,file4-----filen.
2) CAT COMMAND:-
Syntax:-cat>sample
--------------
--------------
Ctrl+d [to close a file]
I) Cat>>sample------>to append data to the file
-----------------------------
-----------------------------
-----------------------------
Ctrl+d
II) Cat file1 file2 file3>file4
This world create file4 which contains contents of file1 following by file2 and fillowing
by that of file3 I.e
It concatenates file1,file2 and file3 contents and redirects the file4. if file4 already
consists something it would be over written.
Rm-I filename
Remove sample y-it removes
N-it won’t remove
Rm-file1,file2,file3:- it remove three files
CREATING A DIRECTORY:-
Mk dir command :- to make directory
Syntax:- MKDIR directory name
Example:-MKDIR tecno
Create multiple directories:- MKDIR dir1 dir2 dir3________dirn
CHANGE DIRECTORIES:-
SYNTAX:- cd directory name
Cd tecno soft
Pwd
/user/techno/techno soft
Cd..:-to change into parent directory
Cd/:-to change to root