Lecture 1(LAB)
Lecture 1(LAB)
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.
The mkdir command makes new, empty, directories
Syntax: $ mkdir mydirectory
Example: $ mkdir OS1
How to create multiple
directories
To create multiple directories in UNIX or Linux using the mkdir
command pass the names of directories to be created to the
mkdir command. The names of directories should be separated
by spaces.
ls
$ pwd
/desktop/os