Module 1 last day ben: tech job, Glossary Flashcards

1
Q

the path that starts from the main directory

A

Absolute path

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

a nickname for common commands

A

Alias

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

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

A

Appending flags

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

The language used to interact with the shell

A

Bash

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

Command Line Interpreter

A

CLI

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

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

A

Command line

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

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

A

Escape characters

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

a file extension found in Windows for an executable file

A

.exe

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

a collection of users

A

groups

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

a graphical user interface

A

gui

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

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

A

Hidden files

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

a keyboard shortcut that does a particular task

A

hot key

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

an input stream handles data flowing into and out of a program. Think of them as actual streams.

A

I/O Streams

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

a value that is associated with a command in Windows. Used to specify it.

A

Parameter

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

A directory that houses directories

A

Parent directory

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

A directory that is housed inside of a directory

A

Child directory

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

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

A

Paths

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

Shows you which directory you are in

A

prompt

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

a pattern matching language that describes words, phrases, or more complicated patterns, used to help you do advanced pattern based selection

A

Regular Expression

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

a path from your current directory

A

relative path

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

a parent directory for all other directories in a file system

A

root directory

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

a command line interpreter for Linux

A

Shell

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

data stream that redirects the output of error messages in a different output stream. works n linux and windows

A

Standard error (stderr)

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

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

A

Standard in, stdin

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

a data stream that when a process creates output, it adds data to the standard out stream, which flows out of the process. Works in linux and windows

A

Standard Out, stdout

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

three data streams created when you launch a Linux command

A

stdin, stdout, stderr

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

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

A

subdirectories

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

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

A

tab completion

29
Q

a character used to help select files based on a certain pattern

A

wildcard

30
Q

what does the -p parameter do with the mkdir command linux?

A

allow mkdir to make parent directories if they don’t exist

31
Q

what does the -m flag do for mkdir?

A

set permissions of directories during creation

32
Q

what does the -v flag do in

A

run command in verbose mode

33
Q

what command only removes empty directories in linux?

A

rmdir

34
Q

what is the format for using rmdir?

A

rmdir dir_name

35
Q

what is the format for removing multiple directories with rmdir?

A

rmdir dir1 dir2 dir3

36
Q

what does the -p flag do for rmdir?

A

makes rmdir remove parent directories, if they are empty

37
Q

what is the touch command used for by default in linux?

A

change the modification and access times of a file. If the file doesn’t exist, it is used to create a file with default permissions.

38
Q

what is the format for touch to make a file?

A

touch empty_file

39
Q

what flag can the touch command use to prevent a new file from being made if it doesn’t exist yet?

A

-c

40
Q

what does the cp command do?

A

used to make a copy of one or more directories or files.

41
Q

What command takes at least one source name and one target name. If the target is a file, then the source must also be a file, and a copy of the source will be made with the new name supplied in target? If the target name isn’t specified, a copy of the source will be made in the target directory under the same name. If a file with the target name already exists in the target directory, it’ll be replaced. If the target is an existing directory, then all sources will be copied into the target directory. If the target is a directory that doesn’t exist, then the source must also be a directory. A copy of the directory and its contents will be made in target under the same name.

A

cp

42
Q

what does the command
cp /home/user/source_file /home/user/duplicates/target_file
do?

A

copy the source file in the directory /home/user/ to the directory ‘duplicates’ as ‘target file’

43
Q

what command is used to move one or more files or directories into a different location, or rename them to a new name? you are Required to pass at least one source and target file names or directories. Follows the rules for existing or non-existing directories or files as cp.

A

mv

44
Q

what command moves the file “source_file” in /home/user/ to the directory “moved_files” and gives it the name “target_name”

A

mv /home/user/source_file /home/user/moved_files/target_file

45
Q

what command is used to remove one or more files, where you need to supply at least one argument to remove?

A

rm

46
Q

how can you remove duplicate file youmade “duplicates” using rm?

A

rm /home/user/duplicates/target_file

47
Q

cd

A
48
Q

do you need flags to move hidden files?

A

no, if you can see them, you know them, you move them.

49
Q

how can you specify that you are moving a file to the current directory in linux?

A

mv /home/user/Images/Filename.jpg .

50
Q

format to remove a non-empty directory

A

rm -r non_empty_dir

51
Q

what is a command used to search through files for the occurrence of a string of characters that matches a specified pattern?

A

grep

52
Q

-r flag in grep

A

search recursively

53
Q

-w in grep

A

match the whole word

54
Q

-n in grep

A

only in line number

55
Q

-e in grep

A

match pattern

56
Q

–include in grep

A

include files in the search

57
Q

–exclude in grep

A

exclude files in the search

58
Q

–include-dir grep

A

include directories in the search

59
Q

–exclude-dir in grep

A

exclued directories in the search

60
Q

what command will open a file in the terminal and display the current file contents, whre you can edit?

A

nano /path/to/existing_file

61
Q

how do you save to nano?

A

ctrl O

62
Q

how do you close out of nano

A

ctrl x

63
Q

help in nano?

A

ctrl g

64
Q

exit help in nano

A

ctrl x

65
Q

If you are on file.txt, in black_folder, in the users directory, in the c drive, what is the parent directory of file.txt?

A

The users directory, because when considering what directory is your parent you need to pay attention to what directory you are in. A file is not a directory. Look at the closest directory in the path, not file, and then the parent directory is the one above that.

66
Q

on my computer, where will ~\ go in Windows?

A

C:\Users\Adminiscule\

67
Q

how do you ask for help?

A

–help. Don’t

68
Q

hahaha.

Try:
this pc, c drive, users path? maybe. hahahah

A