0% found this document useful (0 votes)
39 views

Lab 1-Linux Commands Basics MCA-Mtech

The document provides instructions for the first lab assignment in an Operating Systems course, which involves getting familiarized with the Linux operating system using online terminals and covers basic commands like ls, cd, mkdir, rm, cp, and cat. A table is included that lists commonly used Linux commands along with their purposes such as ls to list directory contents, cd to change directories, and sudo to execute commands with superuser privileges. Students are asked to practice various commands within a 20 minute period and learn how to view manual pages, display system information, and manage files and directories.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views

Lab 1-Linux Commands Basics MCA-Mtech

The document provides instructions for the first lab assignment in an Operating Systems course, which involves getting familiarized with the Linux operating system using online terminals and covers basic commands like ls, cd, mkdir, rm, cp, and cat. A table is included that lists commonly used Linux commands along with their purposes such as ls to list directory contents, cd to change directories, and sudo to execute commands with superuser privileges. Students are asked to practice various commands within a 20 minute period and learn how to view manual pages, display system information, and manage files and directories.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

School of Computer Science Engineering and Technology

Course- MCA/M.Tech Type- Core


Course Code-CMCA505/CSET505 Course Name- Operating Systems Essentials
Year-2024 Semester- Even
Date- Jan 2024 Batch- 2023-25

A- Type- Lab Assignment/Tutorial # No. (Week 1, Assignment No. 1)

1) Introduction and Working with Linux Operating System

https://www.webminal.org/register/

https://www.onworks.net/

(use this link to register for linux terminal online)

2) PATH variable in Linux (How to set and check path)

3) Use of commands- (20 Min.)

man (Syntax- man printf)


School of Computer Science Engineering and Technology

echo (Syntax- echo “Welcome to Bennett University”)

printf (Syntax- printf "%s\n" "Welcome to Operating Systems Lab"),


School of Computer Science Engineering and Technology

uname (information about the system), who (users currently logged in), date,

pwd (Present Working Directory),


School of Computer Science Engineering and Technology
cd, mkdir, rmdir, ls,

cp, mv, rm,


School of Computer Science Engineering and Technology

cat (to create, view, concatenate files Syntax- cat filename, cat -n filename, cat source

Table- Frequently used commands in Linux


Command Purpose
ls List directory contents
cd Change the current directory
pwd Print the current working directory
mkdir Create a new directory
rm Remove files or directories
cp Copy files and directories
mv Move or rename files and directories
cat Concatenate and display file contents
more or less View file contents page by page
chmod Change file permissions
School of Computer Science Engineering and Technology
Command Purpose
chown Change file owner and group
sudo Execute a command with superuser privileges
Package management commands for installing, updating, and
apt or apt-get removing software packages
wget Download files from the web
top or htop Display system processes and their resource usage
ps Display information about processes
kill Terminate processes by ID or name
uname Display system information
df Display disk space usage
du Display disk usage of files and directories
free Display amount of free and used memory in the system
ifconfig Display or configure network interfaces
ping Test network connectivity to another host
traceroute or
tracert Trace the route that packets take to a network host
Display network connections, routing tables, interface statistics,
netstat masquerade connections, and multicast memberships

You might also like