PowerShell
Terminal communication.
📝 7 Prompts
📚 Prompts in this Group
Learn these prompts step by step to master this theme
1
cd ../directory-name
What command do you use to move from your current directory up one level and then directly into a different folder at the same level?
~cd ../directory-name~
2
cd my-quizzes
What terminal command do you use to move your current working location into a folder called my-quizzes?
~cd my-quizzes~
3
connect a specific branch to the main branch
What sequence of Git and terminal commands would you use to move into a local project folder, initialize a repository, create the first commit, connect it to a GitHub remote, rename the branch to main, and force push it upstream?
cd "C:\Users\victo\Local Sites\abu-amra"
~git init~
~git add .~
~git commit -m "Initial commit"~
~git remote add origin~ https://github.com/victorystreamlines/abu-amra.git
~git branch -M main~
~git push --force -u origin main~
4
LS
What terminal command do you use to display the files and folders inside your current directory?
~LS~
stands for List (or List Directory Contents).
5
mkdir folder-name
What terminal command do you use to create a new folder with a specific name inside your current directory?
~mkdir folder-name~
6
PWD
Which Linux terminal command displays the full path of the directory you are currently working in?
~PWD~
stands for Print Working Directory.
7
Rename-Item -Path "C:\root1\root2\old_folder" -NewName "new_folder"
What PowerShell command do you use to rename an existing folder by specifying its full path and providing the new name you want it to have?
~Rename-Item -Path~ "C:\root1\root2\old_folder" ~-NewName~ "new_folder"