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 (A)</p> Signup and view all the answers

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

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

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

<p>d (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 (B)</p> Signup and view all the answers

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

<p>Matches any single character, except newline (B)</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 (D)</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 (C)</p> Signup and view all the answers

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

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

What is the default delimiter in awk?

<p>whitespace (C)</p> Signup and view all the answers

Which operator in awk is used for exponentiation?

<p>^ (A)</p> Signup and view all the answers

Which awk variable refers to the entire record?

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

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

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

More Like This

Use Quizgecko on...
Browser
Browser