Linux Lecture1
Linux Lecture1
LINUX SYSTEM
• Introduction to UNIX/LINUX
• Overview of Commands
UNIX Introduction
History of UNIX
• Invented by Ken Thompson at AT&T in 1969
• First version written in assembly language
– single user system, no network capability
• Thompson, Dennis Ritchie, Brian Kernighan
– rewrote Unix in C: processor/architecture independent
• Unix evolution:
– Bell Labs, USL, Novell, SCO
– BSD, FreeBSD, Mach, OS X
– AIX (IBM), Ultrix, Irix, Solaris (Sun), …
– Linux: Linus Torvalds
Introduction to Linux
What is LINUX
LINUX Distributions
Mandrake: http://www.mandrakesoft.com/
RedHat: http://www.redhat.com/
Fedora: http://fedora.redhat.com/
SuSE/Novell: http://www.suse.com/
Debian: http://www.debian.org/
LINUX Distributions
Introduction to Linux
UNIX Structure
Introduction to Linux
File System
File System
File System
Access Permissions
There are three permissions for any file, directory
or application program.
Access Permissions
Each of the three permissions are assigned to
three defined categories of users.
The categories are:
Access Permissions
One can easily view the permissions for a file by
invoking a long format listing using the command
ls -l.
Access Permissions
Access Permissions
This listing indicates that the file is readable,
writable, and executable by the user who owns the
file (user juan) as well as the group owning the file
(which is a group named student).
$ ls –l
Introduction to Linux
Moving in Directories
cd try_it
Changes the directory to try_it
pwd
Prints present working directory (e.g.
/home/smith/try_it)
cd .. Move to superior directory
pwd : Prints /home/smith
cd /home The absolute path
pwd : Prints /home
cd The system is returned to the user home
directory
pwd : Print /home/smith
Introduction to Linux
Make Directory
Remove Directory
Copy File
Remove File
Assignment
Login as guest (password is guest)
Find the present Directory
Write the root directory structure
Write a few commands available in /bin and /sbin directory
Find the guest directory
Write the permissions of guest directory
Create a new Directory test in guest directory
Copy the file /etc/resolv.conf in test directory
Rename the test directory to testing
Delete the testing directory
Change the permissions of guest directory to 700
Change the permissions of /tmp directory to 700