Tmux Quiz
15 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 create a new session in Tmux?

  • $ tmux attach -t
  • $ tmux
  • $ tmux ls
  • $ tmux new-session (correct)
  • What is the shortcut to exit a Tmux session?

  • Ctrl+B, D (correct)
  • Ctrl+B + c
  • Ctrl+B, Ctrl-s
  • Ctrl+B, Ctrl-r
  • Which plugin is used to restore a Tmux session after a restart?

  • tmux-resurrect (correct)
  • tmux-restore
  • tmux-plugins
  • tmux-restart
  • Which command is used to edit multiple files simultaneously with sed?

    <p>-i</p> Signup and view all the answers

    What is the purpose of the -n option in sed?

    <p>Suppress auto-display</p> Signup and view all the answers

    Which command is used to delete lines containing a specific pattern in sed?

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

    Which command is used to search for lines that start with 'apple' in a file using grep?

    <p>grep '^apple' file.txt</p> Signup and view all the answers

    What does the metacharacter '.' represent in regular expressions?

    <p>Matches any single character, except newline</p> Signup and view all the answers

    Which command is used to print the second column of a space-separated file using awk?

    <p>awk '{print $2}' file.txt</p> Signup and view all the answers

    Which command is used to delete blank lines in a file named 'old.txt'?

    <p>sed '/^$/d' old.txt</p> Signup and view all the answers

    Which command is used to remove a file named '*'?

    <p>rm '*' or rm *</p> Signup and view all the answers

    What is the default delimiter in awk?

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

    Which operator in awk is used for exponentiation?

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

    Which awk variable refers to the entire record?

    <p>$0</p> Signup and view all the answers

    What is the basic format of a conditional statement in awk?

    <p>if (expression) action1 [else action2]</p> Signup and view all the answers

    More Like This

    Use Quizgecko on...
    Browser
    Browser