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

C.S - Basic Linux Command

This document provides an overview of several basic Linux commands, including passwd for changing user passwords, pwd for printing the working directory, apropos for searching commands, su for switching users, and kill for terminating processes. It also covers commands like ifconfig for viewing IP addresses, netstat for connection information, and ping/traceroute for testing network connectivity. The document serves as an introduction to common Linux commands for system administration and troubleshooting.

Uploaded by

Sarfaraz Dedrani
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

C.S - Basic Linux Command

This document provides an overview of several basic Linux commands, including passwd for changing user passwords, pwd for printing the working directory, apropos for searching commands, su for switching users, and kill for terminating processes. It also covers commands like ifconfig for viewing IP addresses, netstat for connection information, and ping/traceroute for testing network connectivity. The document serves as an introduction to common Linux commands for system administration and troubleshooting.

Uploaded by

Sarfaraz Dedrani
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 16

Basic Linux Command

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
Linux Command
passwd
passwd userNameHere
sudo passwd userNameHere
• To change the password of a user account
Output :

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
Linux Command…
• /etc/passwd : one entry per line for each user
(user account) of the system.

Username:password:UID:GID:UserIDInfo:HomeDirectory:Command/shell

• /etc/shadow

Username:Password:Lastpasswordchange(days):Minimum:Maximum:Warn:In
active:Expire

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
Linux Command…

• $1$ is MD5
• $2a$ is Blowfish
• $2y$ is Blowfish
• $5$ is SHA-256
• $6$ is SHA-512

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
Linux Command…
pwd (Print Working Directory)
Output:

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
Linux Command…
apropos: 
• command helps the user to search the
command if use don’t know the exact name of
command.
Output:

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
Linux Command…
su
• The Linux command 'su' is used to switch from
one account to another.
Output:

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
Linux Command…
ssh
• Provides a secure encrypted connection
between two hosts over an insecure network.
Output:

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
Linux Command…
top
• Displays processor activity of your Linux box
and also displays tasks managed by kernel in
real-time.
Output:

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
Linux Command…
kill
• Used to terminate processes manually.
Output:

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
Linux Command…
hostname
• To display the hostname of ip address of
system
Output:

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
Linux Command…
Ifconfig
• View IP Address and Hardware / MAC address assign
to interface
Output:

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
Linux Command…
traceroute/tracepath
• It is a  network troubleshooting utility which
shows number of hops taken to reach
destination

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
Linux Command…
ping(Packet Internet Groper)
• To test connectivity between two nodes.
Output:

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
Linux Command…
netstat (Network Statistic)
• Display connection info, routing table
information.

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET
• https://cocalc.com/doc/terminal.html

B.E III Sem V C.S – Basic Linux Command Computer Engineering, Dept. SCET

You might also like