Linux and Networking Commands Basics
6 Questions
2 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

What command is used to display network interfaces and IP addresses in Linux?

  • ifconfig (correct)
  • ls
  • mv
  • ping
  • Which command is used to remove files and directories in Linux?

  • cp
  • rm (correct)
  • grep
  • cd
  • What does the TCP protocol ensure when sending data over a network?

  • No error checking
  • Reliable delivery in order with error checking (correct)
  • High speed delivery
  • Unreliable delivery without error checking
  • Which protocol is commonly used for secure remote administration?

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

    In networking, what does the UDP protocol prioritize over TCP?

    <p>Speed and delivery order</p> Signup and view all the answers

    What is the purpose of the 'traceroute' command in networking?

    <p>Trace the route packets take to a network host</p> Signup and view all the answers

    Study Notes

    Basic Linux Commands

    • ls command lists directory contents
    • cd command changes the directory
    • pwd command prints the working directory
    • cp command copies files/directories
    • mv command moves/renames files/directories
    • rm command removes files/directories
    • chmod command changes file mode bits (permissions)
    • chown command changes file owner and group
    • grep command searches text using patterns

    Networking Commands

    • ifconfig and ip addr commands display 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 and dig commands query Internet name servers for DNS information

    Ports and Protocols

    • HTTP uses port 80 for web traffic
    • HTTPS uses port 443 for secure web traffic
    • FTP uses port 21 for file transfers
    • SSH uses port 22 for secure remote administration
    • SMTP uses port 25 for email sending
    • DNS uses port 53 for domain name resolution
    • DHCP uses ports 67 and 68 for network device configuration
    • RDP uses port 3389 for Windows remote desktop access

    TCP and UDP Protocols

    • TCP (Transmission Control Protocol) is a connection-oriented protocol, ensuring messages are delivered in order and checks for errors, like making a phone call
    • UDP (User Datagram Protocol) is a connectionless protocol, sending data 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 basic Linux commands such as ls, cd, cp, and networking commands like ifconfig, ping, netstat. Practice using common commands for file/directory operations and network troubleshooting.

    More Like This

    Use Quizgecko on...
    Browser
    Browser