Operating Systems and You: Becoming a Power User Flashcards
What is the CLI?
Command Line Interpreter
What is Tab Completion?
Allows us to use the tab key to auto-complete file names or directories in the powershell/bash by beginning input at double tapping tab
What is the main directory in a Linux file system called?
the Root Directory
What are the 2 CLIs available in Windows?
Command Prompt: cmd.exe
PowerShell: powershell.exe
The main directory in a Windows system is ______
The drive the file system is stored on (eg: c:\ )
In powershell, what command lists the directories of the c drive?
c:\
If you needed a description of a command in powershell, what would you type before the command?
Get-Help
What powershell command shows hidden files during a directory search?
-force
eg:
ls -force c:\
Which powershell command will tell you what directory you’re currently in?
pwd
(print-working directory)
In order to change directory locations in powershell, what command is used?
cd followed by the path.
eg:
cd c:\Users\Name
To go up one path level in a powershell directory, what is the command?
cd ..
What is the powershell shortcut of the home directory?
cd ~
What is the command in Bash and Powershell to create a new directory(folder)?
mkdir _____
(Underscores=chosen file name)
In powershell, how do we work around not being able to use spaces in file or directory names?
either by ‘surrounding it with quotes’ or by following each word with a back tick, eg:
my’ file’ name’
In Bash, how do we get around not being able to use spaces in file or directory names?
either with ‘quotations’, or by entering a backslash between words, eg:
mkdir my/ file/ name/