OS LAB 1 Fall24 25
OS LAB 1 Fall24 25
❑ The Bourne shell. If you are using a Bourne-type shell, the default prompt is the $
character.
❑ The C shell. If you are using a C-type shell, the default prompt is the % character.
❑ There are again various subcategories for Bourne Shell which are listed as follows:
❑ Bourne shell ( sh)
❑ Korn shell ( ksh)
❑ Bourne Again shell ( bash)
❑ POSIX shell ( sh)
❑ Enter uname -r this will show you what kernel version you have.
❑ Enter uname -m this will show you what architecture you are
running.
Current Directory
❑ Your shell has a current directory — the directory in which you
are currently working
■ Commands like ‘ls’ use the current directory if none is
specified
■ Use the pwd (print working directory) command to see what
your current directory is:
$ pwd
/home/fred
ls command
❑ ls is one of the most used basic linux commands, used
to print contents of a directory, by default it lists contents
of current working directory(pwd).
How to create a directory
❑ To create a directory in UNIX or Linux using the mkdir command
pass the name of directory to the mkdir command.
❑ ls
❑ $ pwd
❑ /desktop/os