C.S - Basic Linux Command
C.S - 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