The pwd command shows you the exact path of the folder you’re currently working in, starting from the root of your computer.
$ pwd /Users/yourname/Documents
The mkdir command lets you create a new folder. You can specify where to create it by providing a path. If no path is given, it creates the folder in your current location.
$ mkdir website-project $ ls Documents website-project
The ls command lists all the files and folders inside the current directory. If you provide a folder name, it will list the contents of that folder.
$ ls Documents resume.pdf project-ideas.txt
The cd command allows you to navigate through folders on your computer. You can move to a specific folder or go back to the previous one.
$ cd website-project $ cd ..
Your computer stores all your files in a structured way, often shown as a tree with the root at the bottom. This makes it easier to find and organize files.
$ touch new-file.txt
The touch command creates an empty file in your current folder. You can then open and edit this file as needed.
$ touch index.html
The command line is a text-based interface that lets you control your computer by typing commands. In Unix-like systems, this interface is often called Bash, and the prompt is shown with a $ symbol.
These basic commands help you manage files and folders on your computer, making it easier to organize and work on your website project.
Welcome to our comprehensive collection of programming language cheatsheets! Whether you're a seasoned developer or a beginner, these quick reference guides provide essential tips and key information for all major languages. They focus on core concepts, commands, and functions—designed to enhance your efficiency and productivity.
ManageEngine Site24x7, a leading IT monitoring and observability platform, is committed to equipping developers and IT professionals with the tools and insights needed to excel in their fields.
Monitor your IT infrastructure effortlessly with Site24x7 and get comprehensive insights and ensure smooth operations with 24/7 monitoring.
Sign up now!