Oss Practical 1
Oss Practical 1
PRACTI
TOPIC: 20 BASIC LINUX
CAL 1: COMMAND:
2) COMMAND : ls
DESCRIPTION : the ls COMMAND FILE LISTS THE CONTENT OF A
DIRECTORY IT DISPLAYS FILE AND DIRECTORIES WITH THE
CURRENT DIRECTORY BY DEFAULT .
SYNTAX – ls[option]…[file]…
IT MODIFIES THE BEHAVIOUR OF THE COMMAND .
l – LONG LISTING FORMAT .
h – HUMAN READABLE FORMAT .
OUTPUT EXAMPLE :
OUTPUT EXAMPLE –
4) COMMAND NAME – head
DESCRIPTION – The Linux head command prints the first lines of
one or more files (or piped data) to standard output.
SYNTAX – head [OPTION]... [FILE]...
OUTPUT :
5) COMMAND NAME : tail
DESCRIPTION – tail command writes the file specified by the file
parameter to standard output beginning at a specified point . if
no file is specified , standard output is used .
OUTPUT EXAMPLE :
6) COMMAND NAME : mv
DESCRIPTION : mv command moves files or direction from one
location to another it can also be used to rename file or
directories.
SYNTAX : mv[option]…[source]…[destination]
I prompts before overwriting files .
OUTPUT EXAMPLES :
7) COMMAND NAME : mkdir
DESCRIPTION : mkdir command creates new directoriy with
specified name .
SYNTAX : mkdir[option]…[directory]
OUTPUT EXAMPLES :
8) COMMAND NAME : cp
DESCRIPTION : cp copies files or directory from one directory to
another
SYNTAX : cp[option]…[source]…[test]
-I prompt
-u copy only when the source file is havier then the destination
file or when the destination file is missing
OUTPUT EXAMPLE :
9) COMMAND NAME : rm
DESCRIPTION : removes the entries for a specified file, group of files, or certain
select files from a list within a directory.
SYNTAX : rm [OPTION]... FILE...
OUTPUT EXAMPLES :
OUTPUT EXAMPLE :
SYNTAX : clear
OUTPUT EXAMPLES :
OUTPUT EXAMPLE:
OUTPUT EXAMPLE :
OUTPUT EXAMPLES :
17) COMMAND NAME : free
-m, –
Displays memory usage in megabytes.
mega
-g, –
Displays memory usage in gigabytes.
giga
OUTPUT EXAMPLE :
18) COMMAND NAME : pipe
OUTPUT EXAMPLE:
OUTPUT EXAMPLE:
FLAG:
BRANCH (AI-ML)21 (BATCH 2)