Module 1, day 2 Flashcards
windows: list directories in a Gui ->linux: changing directories in Bash
files and folders
directories
What are organized in a hierarchical directory tree?
directories
in what type of directory organization do you have a main directory that branches off and holds other directories and files?
directory tree
What do you call the location of files and directories in a tree?
paths
What is C:\Users\Cindy\Desktop an example of?
a path
in Windows, what drive letters are file systems assigned to?
C, D, X
What are drive letters?
file systems
what are file systems used for?
keeping track of files on our computer?
What is the parent for all other directories in the file system?
Root directory
How would you write the root directory of C: and X:?
C:\, X:. Remember that it is back slash, not forward slash.
What are separated by backslashes?
Subdirectories in Windows.
What are separated by forward slashes?
Subdirectories in Linux
where does a path start?
the root directory of the drive
What is the main directory in a Windows system?
the drive that the file system is stored on
The path starts at where?
Local Disk (C:)
why are hidden files hidden?
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 to see hidden files
go to the top of file explorer, click view, check the hidden items check box
what if you want to view information about a file?
right click and choose properties.
In file properties, where can you see the file name
in file properties, in the general tab
what is the size of the file in file properties?
the amount of data it takes up.
What is the size on disk?
the number of sectors the file occupies multiplied by sector size
in file properties, where can you see the type of file?
General Tab
in file properties, where can you see location path of the file
General Tab
in file properties, where can you see size of the file
General tab
In file properties, where can you see size on disk?
General tab
in file properties, where can you see timestamps of when the file was created, last modified, and last accessed?
General tab
in file properties, where can you see file attributes you can enable for a file?
General tab
How do you make a hidden file in file properties?
in the general tab, check the “hidden” box in attributes
in file properties, where can you see advanced options for file attributes?
General tab
Where can you go from file explorer to see things about files with tabs including general, security, details, and previous versions?
File Properties
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
in file properties, where can you restore an earlier version of a file?
Previous versions
what do you see by default in file directories?
list of non hidden files and folders
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
What does recursive mean for a program?
it is operating on a directory and its contents
What is a naive algorithm?
a very simple Solution to a problem that has a very high time or high memory complexity
In a recursive directory search, what files won’t be counted in the total folder size?
subdirectories you don’t have access to.
what are file system objects used to extend the attributes of a file system?
reparse points
What does parsing mean?
analyse, break down, dissect, take apart
What does recurse mean?
of, relating to, or constituting a procedure that can repeat itself indefinitely
what size do symbolic links to files count as?
zero size, because the directory entry reports them that way.
what measurement is reported by the FindFirstFile function in the WIN32_FIND_DATA.nFileSizeLow and nFileSizeHigh
?
The Size Measurement in the properties sheet
For Size on Disk: If the drive supports compression (as reported by the FILE_FILE_COMPRESSION flag returned by the GetVolumeInformation 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
GetCompressedFileSize function
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
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
who developed the size on disk algorithm?
Windows 95 team
What was the only disk file system in the MS-DOS background of the Windows 95 team? Files stored in units of clusters
FAT
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
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
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.
When will values be way off for Size on Disk?
if you have a directory with numerous hard links, like the Windows Directory itself
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
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.
What are the CLI on Windows?
command prompt: cmd.exe
Windows PowerShell
What CLI is similar to the command prompt that was used in MS DOS?
cmd.exe, command prompt
What command line supports many of the same commands as the command prompt and more?
PowerShell
what CLI are we using in this course?
Windows PowerShell
What are many commands we’ll use in PowerShell aliases for?
common commands in other shells
What is like a nickname for a command?
alias
command for listing files and directories
ls- list directory