16 Questions
Which command is used to change the file owner and group in Linux?
chown
What is the Linux command for removing files and directories?
rm
Which command is used to display network interfaces and IP addresses?
ifconfig
Which protocol is commonly used for secure remote administration?
SSH
What port number is associated with DNS service?
53
Which networking protocol is faster but lacks guarantees for delivery or order?
UDP
'ping' command in networking is primarily used for:
Checking connectivity to a host.
'netstat' command in networking is used to:
Display network connections, routing tables, interface statistics.
Which Linux command is used to change the file mode bits?
chmod
In networking, which command is used to trace the route packets take to a network host?
traceroute
Which protocol is commonly used for email sending?
SMTP
What port number is associated with FTP for file transfers?
21
Which Linux command is used to copy files and directories?
cp
Which networking protocol is known for ensuring messages are delivered in order and error checking?
TCP
In Linux, which command is used to display the network connections, routing tables, and interface statistics?
netstat
Which networking protocol is faster but lacks guarantees for delivery or order, suitable for streaming where speed is preferred over reliability?
UDP
Study Notes
Basic Linux Commands
-
ls
command lists directory contents. -
cd
command changes directory. -
pwd
command prints the working directory. -
cp
command copies files and directories. -
mv
command moves or renames files and directories. -
rm
command removes files and directories. -
chmod
command changes file mode bits. -
chown
command changes file owner and group. -
grep
command searches text using patterns.
Networking Commands
-
ifconfig/ip addr
command displays network interfaces and IP addresses. -
ping
command checks connectivity to a host. -
netstat
command displays network connections, routing tables, and interface statistics. -
ss
command is a utility to investigate sockets. -
traceroute
command traces the route packets take to a network host. -
nslookup/dig
command queries Internet name servers for DNS information.
Network Protocols and Ports
- HTTP (port 80) and HTTPS (port 443) are used for web traffic.
- FTP (port 21) is used for file transfers.
- SSH (port 22) is used for secure remote administration.
- SMTP (port 25) is used for email sending.
- DNS (port 53) is used for domain name resolution.
- DHCP (ports 67/68) is used for network device configuration.
- RDP (port 3389) is used for Windows remote desktop access.
TCP and UDP
- TCP is a connection-oriented protocol, ensuring messages are delivered in order and checks for errors, similar to making a phone call.
- UDP is a connectionless protocol, sent without establishing a connection, making it faster but without guarantees for delivery or order, suitable for streaming where speed is preferred over reliability.
Test your knowledge on fundamental Linux commands such as ls, cd, cp, and more, as well as essential networking commands like ifconfig, ping, and netstat. This quiz will help you practice and reinforce your skills in navigating the terminal and managing network configurations.
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free