CMD Flashcards
What is the Shell?
It is the Command Line Interpreter. The default Windows shell is cmd.exe. When you open a command prompt, you start a shell. The shell acts as the command-line interpreter.
Both Mac OS X and Linux give you the ability to run the command line with advanced privileges, called what?
super user or root privileges
Whenever you need to run a command as root, what do you type?
Sudo, followed by the command.
T or F? Many Linux systems disable the root account for safety, rendering the su command inoperable. The sudo command enables users to do root things without having the root password.
True
What is the working directory?
It is the specific folder that command prompt is working on. he OS executes commands in the specified folder unless otherwise directed.
What is a file’s association?
It is the extension that tells the operating system what kind of program uses the data.
For example, Microsoft Word is associated with any file that has the extension .docx or .doc.
What’s a file extension?
it tells the operating system what type of program uses this data. (.pdf)
What’s the term for the proper way to write a command?
Syntax
What is a switch?
A modification by using an extra letter or number, which may follow either the command or the target, depending on the command. “/s”
What does the chkdsk command with the switch /f do?
Attempts to fix file system–related errors
What does the chkdsk command with the switch /r do?
Attempts to locate and repair bad sectors
What does the system file checker command do?
scans, detects, and restores important Windows system files, folders, and paths
Which of key is an illegal character in a Linux filename?
/ (forward slash)
Which command pauses after displaying a screen’s worth of directory contents? (Choose two.)
The ls | more and dir /p commands in Linux and Windows, respectively
Which of the following commands will delete all of the files in a directory in Linux?
Type rm * and press enter to delete all files in a directory in Linux