CLI: Command Line Instrument (Microsoft Powershell) Flashcards
PWD
Print Working Directory
CLS
Clear Screen
CD
Change Directory
CD ..
Moves back one level
CD../..
Moves back two levels
CD File name
Directs you into that folder
Ls
Lists Folder content (parent folders only)
Ls -r
List everything (including child folders)
Cat filename.txt
Read .txt folders
cat filename/filename.txt
Read from a different folder
Mv folder1 folder2/folder1
Moves folder 1 into folder 2 (must be in the same directory)
Mkdir directoryName
Creates new directory
echo > filename.txt
Creates a new text file
echo “Text” > filename.txt
Creates a new file and inputs the text between the two brackets into it
rm filename
Deletes a file
Npm install pkg
Installing local packages
Npm install pkg -g
Installing global packages
Npm install pkg –save
Save production dependency
npm install pkg –save-dev
Save development dependency
npm uninstall
Uninstall local packages
npm uninstall -g
Uninstall global packages
–depth 0
Too shorten the list
npm init - y
Answers all package questions
npm run translate_file
run the translated file that you have created
-o
generates one at a time
-d
generates the whole directory
–save-dev
locally installed and as a development dependency