Hello, everyone! π
Today, I started learning Linux commands, and I want to share some basic yet essential commands that every beginner should know.
π 1. Checking Your Current Directory
To know which directory (folder) you are in, use:
pwd
π It prints the full path of your current working directory.
π 2. Listing Files and Folders
To see all files and folders in the current directory, use:
ls
π To view hidden files, use:
ls -a
π 3. Navigating Between Directories
To move into a folder, use:
cd folder_name
π To go back to the previous directory:
cd ..
π 4. Creating a New Folder
To create a directory (folder), use:
mkdir my_folder
π 5. Creating a New File
To create an empty file, use:
- mkdir command in Linux
This mkdir command allows you to create fresh directories in the terminal itself. The default syntax is mkdir and the new directory will be created.
For example, if you want to create a directory as βGeeksforGeeksβ then the basic syntax would be:
mkdir GeeksforGeeks
There are the basic Linux commands learned today! Looking forward to learning more in the coming days.
Top comments (0)