Professional Documents
Culture Documents
Linux
Linux
What is Linux?
Utilities – the core toolkit of the Unix command set, including cp,
ls, grep, find and many others. Subcategories include:
System utilities – administrative tools such as mkfs, fsck, and many others.
Open Source
Multi-User
Multiprogramming
Shell
Security
Communication
Unix is a highly portable OS.
It can be ported to a variety of hardware
platforms.
It is the only system which has been ported
across various hardware platforms of major
vendors such as IBM, DEC, HP and SUN.
Most OSs are written for one specific machine
or platform only.
Linux source code is freely available and it is
community based development project.
SHELL
Kernel decides who will use this resource, for how long
and when. It runs your programs (or set up to execute
binary files).
korn shell (ksh) – korn shell is the unix shell developed by David
korn of Bell labs. Is is considered as the family member of
Bourne shell as it uses the $ symbol of Bourne shell. It is also
names as ksh programmatic ally and it most widely used shell.
Piping
Hear documents
Command execution
C Shell (sh) – C shell is the UNIX shell created by Bill joy at California
university as an alternative to Bourne shell – Unix original shell. C
shell along with Bourne and Korn, are there most popular and
commonly used shells. csh is the program name for C shell.
At the very top of the file system is single directory called "root"
which is represented by a / (slash). All other files are
"descendents" of root.
UNIX permits file names to use most characters, but avoid spaces, tabs and
characters that have a special meaning to the shell, such as:
&;()|?\'"`[]{}<>$-!/
Case Sensitivity: uppercase and lowercase are not the same! These are three
different files:
Hidden Files: have names that begin with a dot (.) For example:
Uniqueness: as children in a family, no two files with
names.
Reserved Filenames:
Types of Pathname
Absolute path
~ (tilde) - This is a shortcut for your home directory.
eg, ~/Documents
. (dot) - This is a reference to your current
directory. Eg ./Documents
.. (dot dot)- This is a reference to the parent
directory.
eg if you were in the path /home/ryan you could run the
command ls ../../ and this would do a listing of the root
directory.
cd .. – change your directory to the parent of the
current directory.
cd ../.. – it moves one level up
cd – change directory
pwd – present working directory
mkdir – make directory
rmdir – remove directory
• When you log into the system, UNIX places you in a
directory called home( or login directory)
/home/13ucsa501
Linux directories
• /bin— Contains common Linux user commands, such as ls, sort, date, and
chmod.
• /boot— Has the bootable Linux kernel and boot loader configuration files
(GRUB).
cp –r progs newprogs
cp –I chap01 unit1
[ ]: character class
ls –x chap0[1-4]
ls –x chap0[124]