Unix
Unix
The kernel
The kernel of the UNIX is the heart of the operating system. It allocates memory
and time to the programs and handles the file structure and communication
between the different parts of the computer system such as the keyboard and
the screen
The shell
The shell is an interface between the user and the UNIX kernel. It resembles
dos box that Windows displays if you run the command cmd. When a user logs
in, UNIX checks their username and password and then starts a program called
the shell. Shell interprets the commands the user types and transmits them to
the kernel to be executed.
The programs
Programs are not part of the operating system as such, but they are logical
sequences of commands, developed for implementing specific tasks. They
usually include application software running at the user end.
are many times faster with a command line interface (CLI) can save a huge
amount of moving the mouse around and clicking. CLIs also require far less
computer resources than GUIs, so they are favored on servers because you want to
reserve most of the computer's horsepower for the services it provides to users. In
UNIX based operating systems (like Linux or Mac OS X) the command line is
incredibly useful. It enables users to have complete control of the operating
systems, and do very complicated tasks in a few keystrokes. CLIs are also useful
for operating computers remotely, because they use practically no bandwidth,
whereas GUIs gobble bandwidth like there's no tomorrow. You can manage a dozen
machines with as many CLI windows from one PC even on very slow connections,
but trying to maintain a dozen GUI windows can easily choke a slow net
connection. For example, with a single UNIX command, I can connect to an online
database, search by name for the source code of an application, download that
source code, find and download all of its required support files, compile the
application into a binary file made specifically to run on my computer, and install
the application.
5. What do following commands in UNIX do? Give an example.
cl <n>
Changes to lowercase all characters in a designated line of text.
n - Specifies the number of lines of text to be changed to lowercase.
Follow the n argument with a space.
echo
Outputting a string.
Ex:
date
$ echo "Text"
Text
Displays/sets a system's date and time. Also a useful way to output/print current
information when working in a script file.
Ex:
$ date
Mon May 20 22:02:24 PDT 2013
ls
Lists files and directories within the current working directory, and admins can
determine when configuration files were last edited.
Ex:
$ ls
Videos
Documents
Music
todo.txt
cd (change directory)
Toggle between directories conveniently.
Ex:
mv (move)
The mv command moves a file to a different location or renames a file.
Ex:
mv one.txt two.txt
mv three.txt ~/Desktop
$ rmdir directoryname
rm (remove)
Deleting a file
Ex:
rm file
cat (concatenate)
Displaying the content of a file. It can be used to read, modify or concatenate text
files too.
Ex:
$ cat filename