Module 1, day 2 Flashcards

windows: list directories in a Gui ->linux: changing directories in Bash

1
Q

files and folders

A

directories

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

What are organized in a hierarchical directory tree?

A

directories

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

in what type of directory organization do you have a main directory that branches off and holds other directories and files?

A

directory tree

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

What do you call the location of files and directories in a tree?

A

paths

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

What is C:\Users\Cindy\Desktop an example of?

A

a path

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

in Windows, what drive letters are file systems assigned to?

A

C, D, X

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

What are drive letters?

A

file systems

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

what are file systems used for?

A

keeping track of files on our computer?

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

What is the parent for all other directories in the file system?

A

Root directory

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

How would you write the root directory of C: and X:?

A

C:\, X:. Remember that it is back slash, not forward slash.

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

What are separated by backslashes?

A

Subdirectories in Windows.

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

What are separated by forward slashes?

A

Subdirectories in Linux

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

where does a path start?

A

the root directory of the drive

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

What is the main directory in a Windows system?

A

the drive that the file system is stored on

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

The path starts at where?

A

Local Disk (C:)

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

why are hidden files hidden?

A

we don’t want anyone to see or accidentally modify the files. could be critical system files or configs, or any files you want to hide.

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

how to see hidden files

A

go to the top of file explorer, click view, check the hidden items check box

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

what if you want to view information about a file?

A

right click and choose properties.

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

In file properties, where can you see the file name

A

in file properties, in the general tab

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

what is the size of the file in file properties?

A

the amount of data it takes up.

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

What is the size on disk?

A

the number of sectors the file occupies multiplied by sector size

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

in file properties, where can you see the type of file?

A

General Tab

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

in file properties, where can you see location path of the file

A

General Tab

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

in file properties, where can you see size of the file

A

General tab

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
In file properties, where can you see size on disk?
General tab
26
in file properties, where can you see timestamps of when the file was created, last modified, and last accessed?
General tab
27
in file properties, where can you see file attributes you can enable for a file?
General tab
28
How do you make a hidden file in file properties?
in the general tab, check the "hidden" box in attributes
29
in file properties, where can you see advanced options for file attributes?
General tab
30
Where can you go from file explorer to see things about files with tabs including general, security, details, and previous versions?
File Properties
31
What tab in File Properties basically tells us the same things as the General tab, but without ability to modify anything or look deeper?
Details tab
32
in file properties, where can you restore an earlier version of a file?
Previous versions
33
what do you see by default in file directories?
list of non hidden files and folders
34
Where can you change how you want to view your file systems and directories
in the tool bar at the top of the File Explorer app
35
What does recursive mean for a program?
it is operating on a directory and its contents
36
What is a naive algorithm?
a very simple Solution to a problem that has a very high time or high memory complexity
37
In a recursive directory search, what files won't be counted in the total folder size?
subdirectories you don't have access to.
38
what are file system objects used to extend the attributes of a file system?
reparse points
39
What does parsing mean?
analyse, break down, dissect, take apart
40
What does recurse mean?
of, relating to, or constituting a procedure that can repeat itself indefinitely
41
what size do symbolic links to files count as?
zero size, because the directory entry reports them that way.
42
what measurement is reported by the FindFirstFile function in the WIN32_FIND_DATA.nFile­Size­Low and nFile­Size­High ?
The Size Measurement in the properties sheet
43
For Size on Disk: If the drive supports compression (as reported by the FILE_FILE_COMPRESSION flag returned by the Get­Volume­Information function) and the file is compressed or sparse (FILE_ATTRIBUTE_COMPRESSED, FILE_ATTRIBUTE_SPARSE_FILE), then the Size on disk for a file is the value reported by the
Get­Compressed­File­Size function
44
For size on disk, what takes the compressed size of the file, if compressed, or the size of the file minus the parts that were de-commited and logically treated as zero.
GetCompressedFileSize function
45
What is Size on disk size if the file is neither compressed or sparse?
the file size reported by the FindFirstFile function rounded up to the nearest cluster
46
who developed the size on disk algorithm?
Windows 95 team
47
What was the only disk file system in the MS-DOS background of the Windows 95 team? Files stored in units of clusters
FAT
48
What file organization system can a file consume zero clusters for its data by stashing itself into slack space in the master file table?
NTFS
49
What does Size on Disk not take into account?
other file system overhead, disk space occupied by the file name itself, directory entry information, file metadata, alternate data streams
50
What is Size on Disk meant to be?
a rough estimate based on the assumption that most files have no hard links and a negligible use of alternate data streams.
51
When will values be way off for Size on Disk?
if you have a directory with numerous hard links, like the Windows Directory itself
52
What can you use as a sniff test to get a rough idea of the size of a directory, but which is a naive calculation?
Size on disk
53
What can you use if you need to keep careful tabs on disk consumption? Their purpose is to more intelligently track disk consumption.
Disk Quotas.
54
What are the CLI on Windows?
command prompt: cmd.exe Windows PowerShell
55
What CLI is similar to the command prompt that was used in MS DOS?
cmd.exe, command prompt
56
What command line supports many of the same commands as the command prompt and more?
PowerShell
57
what CLI are we using in this course?
Windows PowerShell
58
What are many commands we'll use in PowerShell aliases for?
common commands in other shells
59
What is like a nickname for a command?
alias
59
command for listing files and directories
ls- list directory
60
what drive is where the Windows Operating system is installed?
C: drive
61
How to navigate to the C drive in PowerShell
cd C:\
62
What is an example of a command parameter?
C:\ in
63
what do you see in the cli when you navigate to the C: drive?
all the directories in the root of your C: drive
64
What do we call a parent directory?
directories containing directories, like the C: drive root folderW
65
what do we call child directories?
contents inside parent directories.
66
what do parents and children tend to stand for?
hierarchical relationships in OS
67
if I have a folder called "cats" and a second folder nested in that folder called, "Maine Coon" , which folder is which?
Cats is the parent directory. Maine Coon is the child directory
68
What does Program Files (x86) contain?
most of the applications and other programs that are installed in Windows
69
What file contains the user profile directories or home directories?Windows
Users
70
What does each user on a Windows machine get?
a user directory in the Users directory
71
Where is the Windows OS installed?
The Windows directory
72
What happens if you open PowerShell and run Get-Help ls?
you'll see the text describing the parameters of the ls command
73
What happens if you open PowerShell and run Get-Help ls -Full?
You will see more detailed help concerning the parameters of ls command. You'll see a description of each of the parameters and command use examples.
74
How do you see all hidden files in a directory? in PowerShell
ls -Force C:\
75
What does the -Force parameter do?
shows hidden and system files that aren't normally listed with just ls.
76
What does the Recycle function do?
move files to this Recycle directory, instead of deleting immediately,
77
ProgramData directory
used to hold data for programs installed in Program Files
78
what is the directory all other directories stem from?
root directory
79
What denotes the path to the root directory in Linux?
/
80
what is /home/cindy/Desktop an example of?
a path in Linux that starts from the root directory, just like C:\users\cindy\desktop in Windows.
81
in Linux, if you don't provide a path, what will it default to?
the current directory
82
what directory can I mistake for the main directory in Linux?
the home directory, which is not the same as the root directory.
83
what does ls / show us in linux?
all the directories listed under the root directory.
84
what directory in linux stores our essential binaries or programs? Very similar to our Windows program files directory
/bin
85
where are commands we use located in linux?
/bin
86
what folder stores important system configuration files? linux.
/etc
87
what is the personal directory for users called in linux?
/home
88
what directory in Linux holds user documents, pictures, etc. similar to Windows' User directory
/home
89
what directory contains information about currently running processes in Linux?
/proc
90
what directory in Linux doesn't contain our user files, but is meant for user installed software?
/usr
91
Where do we store system logs and constantly changing files in Linux?
/var
92
What is a way to specify additional options for a command in linux, similar to Windows Parameters?
a flag
93
how do we specify flags linux?
using a hypen, then the flag option <-flag> (usually. every command has different flag options)
94
how do you view what options are available for a command in Linux?
add the <--help> flag
95
what happens when you type ls --help?
you get information about ls, used for reference. This is help menu.
96
where do you find what format to put a command in, in Linux?
in linux at the top of the help menu. Usage:
97
Where in linux command help menu do you find what the command does/
under Usage.
98
Where in linux command help menu do you find the options you can use? Tells us what command flags are available, and what they do.
below the information that tells you what the command does, presented with the flag, -- it's definition, and what it does to the command.
99
what does man stand for as a linux command?
manual
100
what is man used for? linux
to show manual pages. Man pages.
101
how do you use the manual command to see man pages? linux.
run man command you want to look up>
102
what will man ls command get you the same information as? linux.
ls --help
103
how do you make a directory list more readable? in linux
ls -l
104
What does -l stand for in linux? as an ls flag.
long
105
What shows detailed information about files and folders in the format of a long list?
ls -l
106
how do you see additonal information about the linux directory and the files and folders in them?
ls -l
107
what is the ls command in linux similar to in windows?
ls, dir
108
what shows us detailed file information?
ls -l
109
what is the first column in a list generated off of ls -l? linux.
file permissions.
110
what is the second column in a list generated off of ls -l? linux.
the number of links a file has
111
what is the third and fourth column in a list generated off of ls -l? linux.
the file owner, then the group the file belongs to
112
what is the fifth column in a list generated off of ls -l? linux.
file size
113
what are groups? linux
another way we can specify access to files
114
what is the sixth column in a list generated off of ls -l? linux.
time stamp of last modification
115
what is the seventh column in a list generated off of ls -l? linux.
file or directory name
116
what does -a stand for as a linux flag for ls?
all
117
what ls flag shows us all the files in the directory, including the hidden files? linux
ls -a
118
how can I append two flags together in the ls command in linux?
ls -l -a/
119
what determines the order a command goes in? linux
the order of the flags
120
does it matter if you do a long list first or show all files first in linux?
not in our case.
121
how do you hide a file or directory?
prepend a dot to it. .file
122
what does prepend mean?
to add something to the beginning of something else
123
how do you change directory in the Gui on windows?
in file explorer, click on the directory you want to navigate to.
124
what is a path that starts from the main directory known as in Windows?
Absolute path
125
what is a path that starts from your current directory known as in Windows?
Relative path
126
where are you usually when you first open PowerShell?
home directory
127
in PowerShell, what shows which directory you are currently in?
your prompt
128
What command in PowerShell shows you what directory you are in?
pwd
129
what does pwd stand for in PowerShell?
print working directory
130
What command in PowerShell lets us change our directory?
cd, change directory.
131
how do you use cd properly? Windows.
cd directory we want to change to
132
What kind of directory path do you need to use to change directory? PowerShell
absolute directory, which spells out the entire path, or relative, which only uses part of the path, describing how we want to get somewhere relative to where we are.
133
what does cd C:\Users\cindy\Documents do? PowerShell
changes us to the Documents directory, using the absolute path.
134
What is the shortcut to get to the level above your current directory? The parent directory of the one you are in right now. in PowerShell
cd ..
135
What is a relative path that will take you up one level relative to where you are in PowerShell?
..
136
PowerShell, what directory are document and desktop directories under?
home
137
in PowerShell, to get to the Desktop directory from the Documents directory, what is an easier way to write this than the command cd .. cd Desktop?
cd ..\Desktop
138
what is cd ~ good for? PowerShell
change directory to home directory.
139
What does ~ mean? PowerShell
home
140
How can I get to the desktop directory in my home folder from anywhere?
cd ~\Desktop
141
What happens if you mess up while typing directory names? PowerShell
PowerShell has a built in feature called Tab completion, which lets us use tab to auto-complete file names and directories.
142
how do you use tab completion to get to another directory? PowerShell
you can press the first letter of the directory, and then tab, and the first file or directory starting with that letter will complete. You can keep pressing tab and the path will rotate through all the options that complete the name you started to type. You can also spell out more letters of the directory to get specific the first time.
143
what does the . in front of the path of .\Desktop\ mean? PowerShell
current directory
144
how is navigating between directories the same in Bash as PowerShell?
The cd command is the same.
145
how do you change directory Linux?
cd path
146
what is cd /home/cindy/Documents an example of? linux
an absolute path in Linux.
147
what does .. do in linux?
go up a parent directory
148
What does tilde mean in Bash?
home
149
what does cd ~/Desktop do? linux
take us back to the desktop
150
what is the difference between tab complete in Bash and Windows?
if we have multiple options in Bash, it won't rotate through the options. It'll show all options at once as a way to show us how many fit that description.