PowerShell

Terminal communication.

📝 8 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~
View →
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~
View →
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~
View →
4

Copy from one folder to another folder. Excluding .get and getignore.

Which Windows built-in command-line tool would you use to mirror all files and subfolders from one local repository folder to another, while explicitly excluding the Git metadata folder and the Git ignore file from being copied? ~robocopy "C:\path\Repo-A" "C:\path\Repo-B" /E /XD ".git" /XF ".gitignore"~
View →
5

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).
View →
6

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~
View →
7

PWD

Which Linux terminal command displays the full path of the directory you are currently working in? ~PWD~ stands for Print Working Directory.
View →
8

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"
View →

🎯 Learning Progress

0 / 8 completed
🧠 Practice with Quiz