Week 1 Flashcards

1
Q

ls

And some associated parameters

A

List files

  • Force (shows hidden files)
  • Full
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How to know flag options in Linux?

A

–help after a command

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

Flags and parameters

A

Specify additional options for a command

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

man and -Full

A

man is a flag used to pull up more detailed info on a command’s parameters

-Full is the windows version of man, though man goes before the command and -Full goes after

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

Absolute path

A

One that starts from the main directory

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

Relative path

A

One that starts from the current directory

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

pwd

A

Print working directory

Tells you which directory you are currently in

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

What command moves you one directory up from the one you’re on?

A

cd ..

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

Tab completion

A

Lets you use tab key to autocomplete file names and directories

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

What’s the command in PowerShell to make a new folder?

A

mkdir

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

How to search history in PowerShell?

A

Ctrl - R

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

Wildcard

A

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

  • is followed by the extension or other pattern you want to select by
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What command lets you rename a file?

A

mv

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

What is the command to remove files?

A

rm or remove

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

How do you leave the “more” command

A

Enter the “q” key

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

How do you view the first 10 lines of a file and the last 10 files?

A
  • Head 10

- Tail 10

17
Q

What key moves you to the beginning of a file opened via the “less” command in Linux? The end?

A

g (takes you to the beginning)

G (takes you to the end)

18
Q

How to search for words in less interface in BASH in Linux?

A

/word (where “word” is whatever word you’re looking for)

19
Q

What gets you out of less interface in Linux?

A

q key

20
Q

Nano, Vim, Emacs

A

Text editors used in the Linux OS

21
Q

Get-Alias

A

PowerShell command that lets the user know which PowerShell command is actually getting executed when using alias commands like ls

22
Q

Windows Search Service

A

It indexes files on your computer by looking through them on a schedule and compiles them into a database

23
Q

-Filter

A

PowerShell command used to search directories to look for just files with a certain file extension or some other category

24
Q

What is the command equivalent to select-string in Linux BASH?

A

grep

25
Q

What is echo an alias for in PowerShell?

A

Write-Output

26
Q

What does the > symbol mean in PowerShell?

A

It’s a redirector operator that moves the output from the screen to a specified location such as a file

27
Q

What is the difference between the > and&raquo_space; symbol?

A

The&raquo_space; symbol will not overwrite an existing file, but instead it will just append info to it

28
Q

What does the | symbol do?

A

Sends the output of one command to the input of another command

29
Q

stderr

A

Standard error (2)

30
Q

$null

A

An empty void to redirect crap you don’t want to see output to