You are on page 1of 6

Operating System Lab

Assignment On - 1 and 2

Submitted with
Farzana Tasnim
Assistant Lecturer
Department of CSE

Submitted By
RAYHAN CHOWDHURY
22 Batch || Exam Roll – 796 || Course code - CSE361L
Linux command
The cat (short for “concatenate“) command is one of the most frequently used command in
Linux/Unix like operating systems. cat command allows us to create single or multiple
files, view contain of file, concatenate files and redirect output in terminal or files. In this
article, we are going to find out handy use of cat commands with their examples in Linux.
For Example

Types of Command
There are three types of commands in operating system. These are given below -
1. Simple Command
2. Compound Command
3. Complex Command.
Simple Command :
A simple command is one that we can execute by just giving its name at the
prompt. For example:

Compound Command :
A compound command consiste of simple and complex commands separated
by the character (; ). For example:
Complex Command :
A complex command is a command that consists of a command name and a list
of arguments. For example:

Some Basic Commands


ls — Use the "ls" command to know what files are in the directory you are in. You can see
all the hidden files by using the command “ls -a”. (List)

cat — Use the cat command to display the contents of a file. It is usually used to easily
view programs.
ls -F – list of folder

ls -1 – ls -1 provides a simple list of the directory

ls –a - Lists all the files (including .* files)


ls –a 1 -

ls –aF
ls –a1F

You might also like