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

Learn basic commands, file and text manipulation (80 cards)

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
Stdin, stdout, stderr
Three data streams created when you launch a Linux command
26
Subdirectories
A directory below or at a deeper level in the directory hierarchy
27
Tab completion
A way to auto-complete a command or file names and directories
28
Wildcard
A character that is used to help select files based on a certain pattern
29
Windows Search service
A service that indexes files on your computer by looking through them on a schedule
30
cd in the CLI
or change directory commandIf we want to change the directory that we're in
31
pwd in the CLI
or print working directorytells you which directory you're currently in.
32
Command Line Interfaces on Windows
cmd.exe powershell.exe
33
Command to list directories in CLI
ls C:\
34
Command to list directories in Linux
ls/
35
CLI Command that will... This will give us a brief summary of the command's parameters.
Get-Help ls
36
Linux Command that will... view what options are available for a command by adding the help flag
ls--help
37
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.
Get-Help ls -Full
38
What is the Linux Command? to get information about commands is the _______ command for manual. It's used to show us manual pages
man—help
39
CLI parameter will show hidden and system files that aren't normally listed with just ls
Ls -Force C:\
40
CLI command Want to get to the desktop directory in your home folder.
Cd~\Desktop
41
Bash command In Bash, the ____ is used to referenceour home directory., so ______ will take us back to our desktop.
cd ~/desktop
42
Tab completion in Bash vs Windows
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
Tab completion in Windows
lets us use the tab key to auto complete file names and directories.Example: type D then tab
44
mkdir
make directory.
45
Ctrl-R
search through your previously used commands using the history shortcut
46
clear command
This doesn't wipe your history, it just clears the output on your screen.
47
power shell command to copy something
CP
48
CLI (-Recurse)
To copy over the contents of the directory, you need to use another command parameter
49
CLI (-Verbose)
Copy doesn't output anything to the CLI by default unless there are errors. When we use copy-Verbose, it'll output one line for each file the directory being copied.
50
mv
mv or move can rename andmove files and directories
51
rm
remove files. Once removed, gone for good. Typically power given only to authorized user.
52
More Command in power shell
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
More Command in Bash
slowly going out in favor of the less command.
54
Cat Command in Power shell
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
Cat Command in Bash
The Cat command is similar to the Windows Cat command since it doesn't do a great job at viewing large files
56
Enter Key in Power shell
The Enter key advances the file by one line. You can use this if you want to move slowly through the file.
57
Space Key in Powershell
Space advances the file by one page.
58
Q Key in Powershell
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
(-HEAD)
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
(-Tail)
example to view the last 10 lines of a file.
61
Less command in Bash
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
g command in Bash
lowercase g this moves to the begininng of a file.
61
G command in Bash
Capital G moves to the end of a file.
62
Command in Bash allows you to search for a word or phrase.
/word_search
62
q command in Bash
allows you to quit out of less and go back to your shell
63
NANO in Bash
launches you into the nano program to start editing
64
CONTROL G in Bash
which helps open up a page
65
CONTROL X in Bash
which is used when you want to save your work or exit from nano
66
Notepad++ editor in Windows GUI that can...
can open multiple files and tabs. opensource text editor, support for different file types.
67
Syntax Highlighting
displays text in different fonts and colors to help highlight things
68
Power Shell Commands Get-Allias ls Get-ChildItem Get-ChildItem C:\ What does each command mean...
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
Windows searching within files... Command to search for the word.
Ctrl-F
70
USING NOTEPAD++ to open the find in files dialog
CTRL+SHIFT+F
71
SEARCH WORDS FROM WITIN COMMAND LINE select desk string command to find words or other strings of characters and files.
sls
72
(-Filter)
The -Filter parameter will filter the results for file names that match a pattern.
73
*
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
ECHO COMMAND IS AN ALLIAS FOR
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
Windows GREATER THAN SYMPOL >
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
Windows 2>
When we use two greater than, we're telling PowerShell to redirect the standard error stream to the file instead of standard out.
77
Null Command
$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.