Summary
Keywords
Full Transcript
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 [email protected] or call us at IND: 7077568998 After completing the course, write to [email protected] for internship or freelancing opportunities. For consultation or partnership related queries drop a mail to [email protected]
