Basic Linux and Networking Commands
16 Questions
1 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which command is used to change the file owner and group in Linux?

  • chmod
  • chown (correct)
  • cp
  • ls
  • What is the Linux command for removing files and directories?

  • rm (correct)
  • mv
  • cd
  • pwd
  • Which command is used to display network interfaces and IP addresses?

  • netstat
  • ifconfig (correct)
  • ping
  • traceroute
  • Which protocol is commonly used for secure remote administration?

    <p>SSH</p> Signup and view all the answers

    What port number is associated with DNS service?

    <p>53</p> Signup and view all the answers

    Which networking protocol is faster but lacks guarantees for delivery or order?

    <p>UDP</p> Signup and view all the answers

    'ping' command in networking is primarily used for:

    <p>Checking connectivity to a host.</p> Signup and view all the answers

    'netstat' command in networking is used to:

    <p>Display network connections, routing tables, interface statistics.</p> Signup and view all the answers

    Which Linux command is used to change the file mode bits?

    <p>chmod</p> Signup and view all the answers

    In networking, which command is used to trace the route packets take to a network host?

    <p>traceroute</p> Signup and view all the answers

    Which protocol is commonly used for email sending?

    <p>SMTP</p> Signup and view all the answers

    What port number is associated with FTP for file transfers?

    <p>21</p> Signup and view all the answers

    Which Linux command is used to copy files and directories?

    <p>cp</p> Signup and view all the answers

    Which networking protocol is known for ensuring messages are delivered in order and error checking?

    <p>TCP</p> Signup and view all the answers

    In Linux, which command is used to display the network connections, routing tables, and interface statistics?

    <p>netstat</p> Signup and view all the answers

    Which networking protocol is faster but lacks guarantees for delivery or order, suitable for streaming where speed is preferred over reliability?

    <p>UDP</p> Signup and view all the answers

    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.

    Studying That Suits You

    Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

    Quiz Team

    Description

    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.

    More Like This

    Use Quizgecko on...
    Browser
    Browser