CLI: Command Line Instrument (Microsoft Powershell) Flashcards
1
Q
PWD
A
Print Working Directory
2
Q
CLS
A
Clear Screen
3
Q
CD
A
Change Directory
4
Q
CD ..
A
Moves back one level
5
Q
CD../..
A
Moves back two levels
6
Q
CD File name
A
Directs you into that folder
7
Q
Ls
A
Lists Folder content (parent folders only)
8
Q
Ls -r
A
List everything (including child folders)
9
Q
Cat filename.txt
A
Read .txt folders
10
Q
cat filename/filename.txt
A
Read from a different folder
11
Q
Mv folder1 folder2/folder1
A
Moves folder 1 into folder 2 (must be in the same directory)
12
Q
Mkdir directoryName
A
Creates new directory
13
Q
echo > filename.txt
A
Creates a new text file
14
Q
echo “Text” > filename.txt
A
Creates a new file and inputs the text between the two brackets into it
15
Q
rm filename
A
Deletes a file