Mastering the pwd Command

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Which component provides the core set of operating system functions?

  • Consoles
  • Shells
  • Kernel (correct)
  • Terminals

What is a distribution or distro in Linux?

  • A commercial licensing and support option
  • A command environment to operate the OS and applications
  • The Linux kernel plus a distinctive type of package manager and software repository (correct)
  • A shell program with support for features such as command history and tab completion

How are the terminal and shell connected?

  • Through a package manager
  • Through a command interpreter
  • Through a desktop environment
  • Through a teletype (tty) device (correct)

Which command can be used to view the help pages for a particular command?

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

Which text file editor is often preferred by those coming from a Windows environment?

<p>nano (D)</p> Signup and view all the answers

Which command is used to switch from insert mode back to command mode in vi or vim?

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

Which command is used to navigate to the root directory in Linux?

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

Which command is used to change the working directory in Linux?

<p>cd (D)</p> Signup and view all the answers

What does the 'pwd' command do in Linux?

<p>Displays the current working directory (B)</p> Signup and view all the answers

Which command is used to search for files in Linux?

<p>find (D)</p> Signup and view all the answers

What does the 'grep' command do in Linux?

<p>Searches and filters the contents of files (B)</p> Signup and view all the answers

Which command is used to create a copy of files either in the same or different directory with the same or different name?

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

Which option is used with the cp command to display the files being copied?

<p>-v (D)</p> Signup and view all the answers

Which command is used to move files from one directory to another or rename a file?

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

Which command can be used to delete files and directories?

<p>rm (D)</p> Signup and view all the answers

Which command is used to switch between virtual tty consoles in Linux?

<p>CTRL+ALT+F1 (D)</p> Signup and view all the answers

Which desktop environment is commonly used in Ubuntu 20?

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

What is the purpose of a pipe symbol (|) in Linux commands?

<p>To send the output of one command to another (A)</p> Signup and view all the answers

What does the --help option do when executing a Linux command?

<p>Reports the function and syntax of the command (A)</p> Signup and view all the answers

Which command is used to remove the contents of the entire directory tree underneath the folder /home/david/data?

<p>rm -r /home/david/data (C)</p> Signup and view all the answers

What does the 'df' command do?

<p>Enables you to view the device's free space, file system, total size, space used, percentage value of space used, and mount point (A)</p> Signup and view all the answers

What is the root user in Linux?

<p>An administrative account with every available privilege (B)</p> Signup and view all the answers

What is the main advantage of using 'sudo' over 'su'?

<p>Does not require sharing the root password between multiple administrators (D)</p> Signup and view all the answers

More Like This

Use Quizgecko on...
Browser
Browser