0% found this document useful (0 votes)
8 views7 pages

Unix Commands for MCA Operating System Lab

The document outlines a lab manual for the Operating System Lab (Unix) for MCA students, detailing various Unix commands and their functionalities. It includes commands for file management, process monitoring, and user information, along with practical examples of their usage. Additionally, it provides a directory structure created during the lab session, showcasing the organization of folders and files.

Uploaded by

Manvinder Singh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views7 pages

Unix Commands for MCA Operating System Lab

The document outlines a lab manual for the Operating System Lab (Unix) for MCA students, detailing various Unix commands and their functionalities. It includes commands for file management, process monitoring, and user information, along with practical examples of their usage. Additionally, it provides a directory structure created during the lab session, showcasing the organization of folders and files.

Uploaded by

Manvinder Singh
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MASTERS OF COMPUTER APPLICATION

(MCA)

Operating System Lab (Unix)


MCAN-292

[Link]- 14271024032 YEAR- 2025

SEMESTER- 2nd SESSION-2024-2026

MAULANA ABDUL KALAM AZAD UNIVERSITY OF TECHNOLOGY


Unix Commands

List of Command Comments

date Show Day, Month, Date, Time, Year

man Display the user manual of any command


that we can run on the terminal.

who Displays information about all users


currently on the local system.

ps Display a list of your processes that are


currently running and obtain additional
information about those processes
cat>MCA25 This allows the type of content for
[Link].

cat >>MCA25 This allows you to add content at the end of


[Link].

cat MCA25 This prints the contents of file.

ls Lists files and directories in the current


directory.

mkdir The mkdir command in Unix is used to


create folders.

cd The cd (change directory) command in Unix


is used to navigate between directories.

touch Used to create empty files or update the


timestamp of existing files.

tree To display the directory structure in a tree-


like format. It shows directories and files in
a hierarchical view.
ls -l It provides information such as permissions,
owner, size, and last modified date.

1
chmod The chmod command in Unix is used to
change file or directory permissions.

chmod o+w MCA Adds write (w) permission for others (o)

chmod 777 Grants full permissions to everyone

lTo run a command as administrator (user "root"), use "sudo <command>".

See "man sudo_root" for details.

Welcome to Ubuntu 22.04.2 LTS (GNU/Linux [Link]-microsoft-standard-WSL2 x86_64)

* Documentation: [Link]

* Management: [Link]

* Support: [Link]

* Strictly confined Kubernetes makes edge and IoT secure. Learn how MicroK8s

just raised the bar for easy, resilient and secure K8s cluster deployment.

[Link]

This message is shown once a day. To disable it please create the

/home/supriya/.hushlogin file.

supriya@supriya:~$ date

Wed Feb 19 14:33:16 IST 2025

supriya@supriya:~$ man date

supriya@supriya:~$ who

supriya pts/1 2025-02-19 14:28

supriya@supriya:~$ ps

2
PID TTY TIME CMD

369 pts/0 00:00:00 bash

2136 pts/0 00:00:00 ps

supriya@supriya:~$ cat>MCA25

^Z

[1]+ Stopped cat > MCA25

supriya@supriya:~$ cat MCA25

supriya@supriya:~$ cat >>MCA25

supriya matabbar

^Z

[2]+ Stopped cat >> MCA25

supriya@supriya:~$ cat MCA25

supriya matabbar

supriya@supriya:~$ cat >>MCA25

^Z

[3]+ Stopped cat >> MCA25

supriya@supriya:~$ ls

MCA25

3
supriya@supriya:~$ mkdir college

supriya@supriya:~$ cd college

supriya@supriya:~/college$ mkdir CA

supriya@supriya:~/college$ mkdir CSE

supriya@supriya:~/college$ mkdir CIVIL

supriya@supriya:~/college$ ls

CA CIVIL CSE

supriya@supriya:~/college$ cd CA

supriya@supriya:~/college/CA$ mkdir MCA BCA

supriya@supriya:~/college/CA$ ls

BCA MCA

supriya@supriya:~/college/CA$ cd MCA

supriya@supriya:~/college/CA/MCA$ touch 1st 2nd

supriya@supriya:~/college/CA/MCA$ cd ...

-bash: cd: ...: No such file or directory

supriya@supriya:~/college/CA/MCA$ cd ..

supriya@supriya:~/college/CA$ cd ..

supriya@supriya:~/college$ cd ..

supriya@supriya:~$ cd college

supriya@supriya:~/college$ cd BCA

-bash: cd: BCA: No such file or directory

supriya@supriya:~/college$ cd CA

supriya@supriya:~/college/CA$ cd BCA

supriya@supriya:~/college/CA/BCA$ touch 1st 2nd

supriya@supriya:~/college/CA/BCA$ cd ..

supriya@supriya:~/college/CA$ cd ..

supriya@supriya:~/college$ cd CSE

4
supriya@supriya:~/college/CSE$ mkdir CSE_Ai CSE_ML

supriya@supriya:~/college/CSE$ cd CSE_Ai

supriya@supriya:~/college/CSE/CSE_Ai$ touch 1st 2nd

supriya@supriya:~/college/CSE/CSE_Ai$ cd ..

supriya@supriya:~/college/CSE$ cd CSE_ML

supriya@supriya:~/college/CSE/CSE_ML$ touch 1st 2nd

supriya@supriya:~/college/CSE/CSE_ML$ cd ..

supriya@supriya:~/college/CSE$ cd ..

supriya@supriya:~/college$ mkdir CIVIL

mkdir: cannot create directory ‘CIVIL’: File exists

supriya@supriya:~/college$ cd CIVIL

supriya@supriya:~/college/CIVIL$ mkdir MTECH

supriya@supriya:~/college/CIVIL$ mkdir BTECH

supriya@supriya:~/college/CIVIL$ cd MTECH

supriya@supriya:~/college/CIVIL/MTECH$ touch 1st 2nd

supriya@supriya:~/college/CIVIL/MTECH$ cd ..

supriya@supriya:~/college/CIVIL$ cd BTECH

supriya@supriya:~/college/CIVIL/BTECH$ touch 1st 2nd

supriya@supriya:~/college/CIVIL/BTECH$ cd ..

supriya@supriya:~/college/CIVIL$ cd ..

supriya@supriya:~/college$ cd ..

supriya@supriya:~$ tree college

5
college

├── CA

│ ├── BCA

│ │ ├── 1st

│ │ └── 2nd

│ └── MCA

│ ├── 1st

│ └── 2nd

├── CIVIL

│ ├── BTECH

│ │ ├── 1st

│ │ └── 2nd

│ └── MTECH

│ ├── 1st

│ └── 2nd

└── CSE

├── CSE_Ai

│ ├── 1st

│ └── 2nd

└── CSE_ML

├── 1st

└── 2nd

10 directories, 12 files

You might also like