Unit - 4
Unit - 4
• Kernel −
– The kernel is the heart of the operating system.
– It interacts with the hardware and most of the tasks like
memory management, task scheduling and file
management.
• Shell −
– The shell is the utility that processes your requests.
– When you type in a command at your terminal, the shell
interprets the command and calls the program that you
want.
– The shell uses standard syntax for all commands. C Shell,
Bourne Shell and Korn Shell are the most famous shells
which are available with most of the Unix variants.
The structure of Unix OS
• Shell −
– Bourne Shell: This Shell is simply called the Shell. It
was the first Shell for UNIX OS. It is still the most
widely available Shell on a UNIX system.
– C Shell: The C shell is another popular shell
commonly available on a UNIX system. The C shell
was developed by the University of California at
Berkeley and removed some of the shortcomings of
the Bourne shell.
– Korn Shell: This Shell was created by David Korn to
address the Bourne Shell's user-interaction issues
and to deal with the shortcomings of the C shell's
scripting quirks.
The structure of Unix OS
ls command in Unix
• It is a command line utility that lists the
content/files listed in a particular Unix
directory.
• ls command with no parameters displays the
files listed in your current working directory.
• With ls command, you can add one or more
modifiers to get additional information.
– List contents of a directory
– ls is a command to list computer files in Unix
File Oriented Commands
ls command in Unix
• Syntax: ls [option] [filenames]
Command Use
ls -a Displays all files including hidden files
Long listing- The default output of the ls command
shows only the names of the files and directories. The
-l option shows files in a long listing format with
ls -l details like file type, file permissions, Number of hard
links to the file, file owner, file group, file size, Date
and Time, file name.
Does not display a message if the cat command cannot find an input file. This flag is
-q
identical to the -s flag.
-s Does not display a message if the cat command cannot find an input file.
File Oriented Commands