Working With The Command Line Interface Flashcards

1
Q

The tool that interprets input

A

Shell/Command Line Interpreter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Default Windows shell

A

Command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Default shell for macOS and most Linux distros

A

Bash

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Command line in macOS and Ubuntu Linux that operate almost identically because both are based on UNIX

A

Terminal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Older command that gives the user root access

A

su

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Command that gives the user root access

A

sudo

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A unique method of binary organization

A

File Format

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Linux command that displays the user’s current path

A

pwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

An extra letter or number that modifies a command

A

Switch/Option

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The proper way to write a command

A

Syntax

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Command that shows you the contents of the working directory

A

dir (Win)/ls (macOS/Linux)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Command that shows the contents of the working directory one screen at a time in which hitting spacebar shows the next screen

A

dir /p (pause)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

macOS and Linux version of dir/p

A

ls | more

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Sends the output of a command through another command; works in all three OSes

A

(pipe)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Lists the creation date, creation time, file size in bytes, filename, and extension

A

dir entries for files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Lists the creation date, creation time, to tell you it is a folder, and the folder name

A

dir entries for folders

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Command that changes the directory focus and works in every OS but uses \ for Win and / for macOS and Linux

A

cd command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Switch that moves the focus up one level when navigating from the command line

A

.. option/switch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Moved you to another drive in Windows

A

(Letter and a colon)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Since macOS stores everything in folders, look in the /Volumes folder

A

Moving between drives in macOS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Since Linux stores everything in folders, look in the /mnt folder for drives and /media/ folder for removable media

A

Moving between drives in Linux

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Command that makes a directory. Once Windows executed the command, it won’t show what it did.

A

md (Win)/mkdir(all OSes) command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Command that removed a directory. The command will not delete a directory if the directory has any files or subdirectories

A

rd (Win)/rmdir (all OSes)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Removes a directory and its contents

A

rd /s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Files with extensions .exe and .com in Windows

A

Programs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Command typed in front of an executable that makes Linux run it

A

./

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

One of two special characters (* and ?) that you can use in place of all or part of a filename, often so that a command-line command will act on more than one file at a time. Use * to replace the part of the file that you don’t care about

A

Wildcard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Command used to delete files.

A

del (Win)/rm (macOS and Linux)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Will not delete directories

A

del

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

Will delete directories if the “-r” switch is added

A

rm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

Command to duplicate a file to another directory

A

copy (Win)/cp (macOS and Linux)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

Command to change the location of a file

A

move (Win)/mv (macOS and Linux)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

Command that functions similarly to copy but has extra switches that gives it the power to work with multiple directories

A

xcopy command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

Command with switch that moves all subdirectories except for empty ones

A

xcopy /s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

Command with switch that moves all empty subdirectories

A

xcopy /e

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

Command that is an add-on tool for Windows Server to enable techs to manage files and folders more quickly and efficiently than with xcopy or copy. Copies encrypted files and will continue at the spot it stopped at if interrupted

A

robocopy/Robust File Copy command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

Command with switch that tells robocopy to copy everything from the source and make the destination mirror it IE delete anything in the destination that doesn’t match the source folders and files

A

robocopy /mir

38
Q

Command that scans, detects, and repairs file system issues and errors

A

chkdsk command

39
Q

Command and switch that attempts to fix file system-related errors

A

chkdsk /f

40
Q

Command and switch that attempts to locate and repair bad sectors

A

chkdsk /r

41
Q

Command that enables you to format volumes from the command line

A

Format command

42
Q

Command that displays the name of the computer

A

hostname command

43
Q

Define various security settings for Windows systems, such as password complexity, logon attempts, and permissions for users to install software

A

Group Policies

44
Q

Command that forces a workstation to update to new group policies

A

gpupdate

45
Q

Command that shows an overview (detailed or summary) of all security policies applied to a single user or computer

A

gpresult command

46
Q

Command that scans, detects, and restores important Windows system files, folders, and paths. If it finds issues, it will attempt to replace corrupted or missing files from cached DLLs (backup of system files) located in the Windows\System32\Dllcache\ directory

A

sfc/System File Checker command

47
Q

Command that turns a computer off (or reboots it)

A

shutdown command

48
Q

Special key that brings back the previous command one letter at a time

A

F1

49
Q

Special key that brings back the entire previous command at once

A

F3

50
Q

A powerful replacement for the traditional Windows Command shell

A

PowerShell

51
Q

A series of more powerful tools than the standard commands

A

cmdlets

52
Q

cmdlet that tells the command to fetch the file type indicated next

A

-Include

53
Q

cmdlet that means go into every subdirectory

A

-Recurse

54
Q

cmdlet that retrieves hidden and system files

A

-Force

55
Q

Command that enables you to view and change the settings for your network connections in macOS and Linux (though not the preferred tool for Linux)

A

ifconfig command

56
Q

Linux replacement for ifconfig that can do everything ifconfig does and more

A

ip command

57
Q

eth0, eth1, en0, en1, and so on

A

Wired Ethernet NICs

58
Q

wlan0, wlan1, and so on

A

Wireless 902.11 NICs

59
Q

Loopback

A

lo

60
Q

Command that enables you to view and change the wireless settings

A

iwconfig command

61
Q

macOS and Linux command that shows you the processes running on the system

A

ps command

62
Q

ps command with three switches: a=processes for all users, u=show process owner, x=process not attached to a terminal

A

ps aux

63
Q

Command that enables you to search through text files or command output to find specific information or to filter out unneeded info

A

grep command

64
Q

A number of different tools that give you the ability to download and fully install and update software from a single command

A

Package Managers

65
Q

Package management system for Debian Linux-based distributions (like Ubuntu and Mint)

A

APT/Advanced Packaging Tool

66
Q

The command line tool for APT to install programs in which you must know the name of the package you want to install

A

apt-get

67
Q

Command that updates its package index, the list of all available packages (software)

A

apt-get update

68
Q

The default text editor, built in to macOS and most Linux distros

A

vi

69
Q

Mode in vi text editor that allows you to insert and edit text. Hit I key to go from Command to this

A

Insert mode

70
Q

Mode in vi text editor that allows you to give commands such as cut, paste, delete line or characters, and save the file. Default mode. Escape key to go from Insert to this

A

Command Mode

71
Q

macOS and Linux command primarily used to create an exact, bit-by-bit image of any form of block storage, meaning mass storage devices such as hard drive volumes, thumb drives, and optical media

A

dd command

72
Q

Command that enables you to change your password or, if logged in as root (the super user), any user’s password

A

passwd command

73
Q

A small program used to help automate computing tasks

A

Script

74
Q

A kind of programming

A

Scripting

75
Q

A type of programming language optimized for writing scripts

A

Scripting language

76
Q

The shell scripting language for the old-school Command shell on Windows and DOS

A

Batch file/.bat

77
Q

A shell scripting language written from the ground up for automating modern Windows systems. Replaces batch files in almost all situations

A

PowerShell/.ps1

78
Q

By convention, the first line of a UNIX shell script file specifies which shell should execute the script (and thus, which shell scripting language it is written in). These files often have a .sh file extension, but it is not necessary

A

UNIX shell script/.sh

79
Q

A flexible programming language with simple syntax that makes it well suited for writing both simple scripts and large apps

A

Python/.py

80
Q

A browser scripting language developed back in the 90s to enhance Web pages, but these days you can find it in command-line programs, extensions for many desktop apps, and much more

A

JavaScript/.js

81
Q

A legacy scripting language for Windows and other Microsoft apps. Slowly being replaced by other languages like PowerShell

A

Visual Basic Script/.vbs

82
Q

A defined category, like number or word

A

Data type

83
Q

A number

A

Integer data type

84
Q

A sequence of characters, usually identified with single or double quotes surrounding it

A

String data type

85
Q

In a scripting or programming language, is a named value or thing

A

Variable

86
Q

Tools to control commands

A

Control Constructs

87
Q

Control constructs that enable you to specify code that should run only when some condition is or isn’t met. Some languages use keywords like “if”

A

Conditionals

88
Q

A kind of conditional that tells the computer to run the code over and over until the condition is or isn’t met. Some languages use keywords like “for” and “while”

A

Basic loops

89
Q

Special text in scripting and programming languages that helps anyone reading the script later (including the writer) understand what’s going on

A

Comment

90
Q

Symbol that is used in the PowerShell, Python, and UNIX shells that start a comment

A

symbol

91
Q

System data such as the date and time, currently logged-in users, running OS version, and more. Scripts and programs on a system often use these variables to tailor their behavior to the system’s capabilities and configuration

A

Environment Variables