Module 1- Introduction to Operating Systems and Becoming a Power User Flashcards

Learn basic commands, file and text manipulation

1
Q

Absolute path

Example:

Windows- cd C:\Users\cindy\Documents

Linux: cd/home/cindy/documents

A

It is one that starts from the main directory

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

Alias

A

A nickname for common commands

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

Appending flags

> >

A

A way to add the data of the file without erasing existing data

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

Bash

A

The language used to interact with the shell

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

CLI

A

Command line interpreter

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

Command line

A

A text interface program for a computer that inputs text commands and translates them to the operating system

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

Escape characters

A

A concept that means that the next character after the back tick should be treated literally

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

.exe

A

A file extension found in Windows for an executable file

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

Groups

A

A collection of users

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

GUI

A

A graphical user interface

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

Hidden files

A

A set of files that are not visible either to avoid alteration or simply because you don’t want someone to see them

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

Hot key

Example:

Ctrl-C (copy)

Ctrl-V (paste)

A

A keyboard shortcut that does a particular task

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

I/O Streams

A

An input stream handles data flowing into and out of a program

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

Parameter

A

A value that is associated with a command

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

Parent directory & child directories

A

A parent directory is a directory that houses all subsequent child directories

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

Paths

Path example
Windows: C:\User\CIndy\Desktop
Linux /home/cindy/desktop

A

A main directory that branches off and holds other directories and files

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

Prompt

A

A prompt shows you which directory you’re currently in

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

Relative path

Example:
WIndows- cd…pwd
Linux- cd../documents

A

It is a path from your current directory

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

Regular expression

A

A pattern matching language that describes words, phrases, or more complicated patterns; regular expressions are used to help you do advanced pattern based selection

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

Root directory

A

A parent directory for all other directories in a file system

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

Shell

A

A shell is a command line interpreter for Linux

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

Standard error (stderr)

A

A data stream that redirect the output of error messages in a different output stream. It works both in Linux and Windows

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

Standard In (stdin)

A

A data stream in which the input that you provide through the keyboard goes to the standard in stream of the process that you’re interacting with. It works both in Linux and Windows

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

Standard out (stdout)

A

A data stream that when a process creates output, it adds data to the standard out stream, which flows out of the process. It works both in Linux and Windows

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

Stdin, stdout, stderr

A

Three data streams created when you launch a Linux command

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

Subdirectories

A

A directory below or at a deeper level in the directory hierarchy

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

Tab completion

A

A way to auto-complete a command or file names and directories

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

Wildcard

A

A character that is used to help select files based on a certain pattern

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

Windows Search service

A

A service that indexes files on your computer by looking through them on a schedule

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

cd in the CLI

A

or change directory commandIf we want to change the directory that we’re in

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

pwd in the CLI

A

or print working directorytells you which directory you’re currently in.

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

Command Line Interfaces on Windows

A

cmd.exe
powershell.exe

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

Command to list directories in CLI

A

ls C:\

34
Q

Command to list directories in Linux

A

ls/

35
Q

CLI Command that will…
This will give us a brief summary of the command’s parameters.

A

Get-Help ls

36
Q

Linux Command that will…
view what options are available for a command by adding the help flag

A

ls–help

37
Q

What is the CLI Commnad?
Now you can see a description of each of the parameters and some examples of how to use the command.

A

Get-Help ls -Full

38
Q

What is the Linux Command?
to get information about commands is the _______ command for manual. It’s used to show us manual pages

A

man—help

39
Q

CLI
parameter will show hidden and system files that aren’t normally listed with just ls

A

Ls -Force C:\

40
Q

CLI command
Want to get to the desktop directory in your home folder.

A

Cd~\Desktop

41
Q

Bash command
In Bash, the ____ is used to referenceour home directory., so ______ will take us back to our desktop.

A

cd ~/desktop

42
Q

Tab completion in Bash vs Windows

A

The difference between Bashtab complete and Windows tab complete is that if we have multiple options, it won’t rotate through the options, but instead will show us all options at once.

43
Q

Tab completion in Windows

A

lets us use the tab key to auto complete file names and directories.Example: type D then tab

44
Q

mkdir

A

make directory.

45
Q

Ctrl-R

A

search through your previously used commands using the history shortcut

46
Q

clear command

A

This doesn’t wipe your history, it just clears the output on your screen.

47
Q

power shell command to copy something

A

CP

48
Q

CLI
(-Recurse)

A

To copy over the contents of the directory,you need to use another command parameter

49
Q

CLI
(-Verbose)

A

Copy doesn’t output anything to the CLI by default unless there are errors.When we use copy-Verbose, it’ll output one line foreach file the directory being copied.

50
Q

mv

A

mv or move can rename andmove files and directories

51
Q

rm

A

remove files. Once removed, gone for good. Typically power given only to authorized user.

52
Q

More Command in power shell

A

more

“to view contents of the file 1 page at a time. The more command will get the contents of the file, but will pause once it fills the terminal window. Now we can advance the texts at our own pace. “

53
Q

More Command in Bash

A

slowly going out in favor of the less command.

54
Q

Cat Command in Power shell

A

cat

this will dump the contents of the file in our shell. This isn’t the best solution for a file, since it just keeps writing the content until the whole file is displayed

55
Q

Cat Command in Bash

A

The Cat command is similar to the Windows Cat command since it doesn’t do a great job at viewing large files

56
Q

Enter Key in Power shell

A

The Enter key advances the file by one line. You can use this if you want to move slowly through the file.

57
Q

Space Key in Powershell

A

Space advances the file by one page.

58
Q

Q Key in Powershell

A

The Q key allows you to quit out of more and go back to your shell. If we want to leave the more command and go back to our shell, we can just hit the q key.

59
Q

(-HEAD)

A

We don’t really want to open up the whole file. Instead, we just want to get a glimpse of what the document is. This is called the head of the file. This example command will show the first 10 lines of a file.

60
Q

(-Tail)

A

example to view the last 10 lines of a file.

61
Q

Less command in Bash

A

Less does a similar thing that more does for Windows but it has more functionality. Less command launches you into an interactive shell. Used frequently as IT support specialist.

61
Q

g command in Bash

A

lowercase g this moves to the begininng of a file.

61
Q

G command in Bash

A

Capital G moves to the end of a file.

62
Q

Command in Bash allows you to search for a word or phrase.

A

/word_search

62
Q

q command in Bash

A

allows you to quit out of less and go back to your shell

63
Q

NANO in Bash

A

launches you into the nano program to start editing

64
Q

CONTROL G in Bash

A

which helps open up a page

65
Q

CONTROL X in Bash

A

which is used when you want to save your work or exit from nano

66
Q

Notepad++ editor in Windows GUI that can…

A

can open multiple files and tabs. opensource text editor, support for different file types.

67
Q

Syntax Highlighting

A

displays text in different fonts and colors to help highlight things

68
Q

Power Shell Commands

Get-Allias ls
Get-ChildItem
Get-ChildItem C:\

What does each command mean…

A

to see the actual powershell command that gets executed. When we use this command we are actually calling Get-ChildItem

gets or lists the children which are the files and subdirectories of the given item.

it’s the same as ls C:\

powershell commands are very long and descriptive which makes them easy to understand. But it does mean a lot of extra typing when your working at the cli

69
Q

Windows searching within files… Command to search for the word.

A

Ctrl-F

70
Q

USING NOTEPAD++
to open the find in files dialog

A

CTRL+SHIFT+F

71
Q

SEARCH WORDS FROM WITIN COMMAND LINE
select desk string command to find words or other strings of characters and files.

A

sls

72
Q

(-Filter)

A

The -Filter parameter will filter the results for file names that match a pattern.

73
Q

*

A

The asterisks mean match anything, and the .exe is the file extension for executable files in Windows. So the only results we’re going to get are the files that end in .exe, cool.

74
Q

ECHO COMMAND IS AN ALLIAS FOR

A

ECHO COMMAND IS AN ALLIAS FOR Write- Output

We know the echo command prints out our keyboard input to the screen. But how does this work? Every Windows process and every PowerShell command can take input and can produce output.

75
Q

Windows
GREATER THAN SYMPOL >

A

The greater than symbol is something we call a redirect or operator that lets us change where we want our standard output to go.

76
Q

Windows
2>

A

When we use two greater than, we’re telling PowerShell to redirect the standard error stream to the file instead of standard out.

77
Q

Null Command

A

$null
What if we don’t care about the error messages, but we don’t want to put them in a file? Using our newly learned redirect or operators, we can actually filter out these error messages. In PowerShell, we can do this by redirecting standard error to dollar sign null.