Week 1 - Intro to Operating Systems - basic commands Flashcards
What are paths?
Paths are locations of files and directories
which path to take…. hmm…
What are file systems? 3
File systems are the organization of files and directories, keep track of files, and are assigned to a drive letter
cabinet of files….each cabinet is a drive letter…
What are root directories? What does it look like?
A root directory is the parent for all other directories in the file system
root….tree roots…to branches…
‘C:'
What are subdirectories separated by?
Subdirectories are separated by a backward slash \
What are Linux subdirectories separated by?
Linux subdirectories are separated by a forward slash /
Which feature tracks disk consumption more accurately?
Disk Quotas
What is ‘size on a disk’?
An estimate of a compressed file or size of the file minus parts that were taken away
If neither of those, then it’s the size reported by the FindFirstFile function rounded up
What’s the difference between command prompt and PowerShell?
PowerShell does what command prompt can but can do much more
What is the list directory command we used in PowerShell?
What’s a parameter you can add to the end of the line?
ls
ls C:\
What’s a parameter?
a value you can add to a command
The C drive root folder is called a ______ and the contents inside are considered a ________
C Drive root folder is a parent directory and contents inside are the child directories
Which child directory contains most of the applications and programs installed on Windows?
Program Files (x86)
What command do we use to see a description of the ls command on windows? How do you get a more detailed version?
Get-Help ls
Get-Help ls -full
What command do you use to see all the hidden files in a drive? Windows
ls -Force C:\
What directory is the main directory in a Linux filesystem?
Root directory
What is a flag? Linux Is there an equivalent in Windows?
A flag lets us customize a command with a specific action
How do you use a flag? Linux
A flag is used as a hyphen and then the flag command
What flag lets you view what options are available for a command? Linux
–help
(two hyphens)
What command in linux lets us see manual pages for commands we can use?
man
Flags always contain ____
at least 1 hyphen in front
What linux command allows us to view information in a long list format?
-l
Can you combine 2 flags together? How would that look like?
Yes
-l -a = -la
What does the order of a flag determine?
The order of flags determines what order it goes in
How do you hide a file or directory in Linux?
put a dot at the beginning of the file
Do flags in Linux go before or after a command?
Flags go after the main command
What are the 2 different types of paths? Windows
- Relative
- Absolute
Describe the 2 different types of paths, how are they different? Windows
- Absolute - path starts from the main directory
- Relative - path starts from the current directory
What windows command tells you what directory you’re in?
pwd
What does the pwd command stand for? windows
Print Working Directory
what command allows us to change the directory we’re in? windows
cd