Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

48. Basic macOS Terminal Commands to learn Git CLI – Full stack web development Course

13.5K views on YouTube

In this Full Stack Web Development Tutorial Course video, We will be learning some basic #macOS #terminal #commands . The first one is changing directory. Directory is a folder or location for storing files in the computer.

To navigate through directories we use the cd command in terminal.
For example: cd directory-name

To list all the files and folders in a directory use the ls command. Changing directories and listing out items in directories go hand in hand.

To navigate back in a directory use cd .. command.

List of basic terminal commands:

– mkdir dir-name Create a new directory with name dir-name
– ls Display the name of files and subdirectories in the directory
– touch file-name Create a new file wit name file-name
– Change Directory:
– cd Home directory
– cd [folder] Change directory, e.g. cd Documents
– cd~ Home directory
– cd/ Root of the drive
– cd- Previous directory or folder you last browsed
– pwd Show your working directory
– cd.. Move up to the parent directory
– cd../.. Move up two levels
– cp file-name target-name : Copy the files and directories from source path to destination path.
– mv file-name target-name : Used to move the files or directories.
– mv file-name new-name: Rename an existing file.
– rm file-name : Used to remove files
– rm -R folder-name : Used to remove non empty folders(i.e. Contains files inside)
– rmdir dir: Used to remove a directory if it is empty
– rmdir -R dir: Used to remove non-empty directories along with it’s content.

NOTE: While removing files or folders from the terminal we should be very careful as they are permanently deleted unlike done from the desktop or finder.
—————————-

Week 2 : Day 2
Section 6 : Version Control With Git
Tutorial 48: macOS Terminal Basics to learn Git CLI, git command-line

—————————-
Do subscribe and hit Bell Icon
—————————-

Follow us in social media handles for opportunities and code related support.

Instagram: https://www.instagram.com/wb.web/
Facebook: https://www.facebook.com/wbweb/
Twitter: https://twitter.com/wbweb_in/
LinkedIn: https://www.linkedin.com/company/wbweb/

—————————-

Got a question on the topic? Please share it in the comment section below and our experts will answer it for you.

For more information, please write back to us at hi@wbweb.co.in or call us at IND: 7077568998

After completing the course, write to biswabijaya@wbweb.co.in for internship or freelancing opportunities.

For consultation or partnership related queries drop a mail to hi@wbweb.co.in