Skip to main content

Command Palette

Search for a command to run...

Basic Linux Directory Commands 🐧💻

Updated
1 min read
Basic Linux Directory Commands 🐧💻
A

"I'm a 3rd-year Computer Engineering student at Marwadi University with skills in C++, web development (MERN stack), and DevOps tools like Kubernetes. I contribute to open-source projects and share tech knowledge on GitHub and LinkedIn. I'm learning cloud technologies and app deployment. As an Internshala Student Partner, I help others find jobs and courses." now currently focusing on #90DaysOfDevops

• Make a new folder 'newFolder'

mkdir newfolder

• Make a hidden directory (also . before a file to make it hidden)

mkdir .NewFolder

• Make multiple directories at the same time

mkdir A B C D

• Make a new folder in a specific location

mkdir /home/ubuntu/Mydirectory

• Make a nested directory

mkdir -p A/B/C/D

• Print work directory. Gives the present working directory.

pwd

• change directory to the provided path

cd path_to_directory

• change directory to the home directory

cd
cd ~

• Go to the last working directory.

cd -

• change directory to one step back.

cd ..

• change directory to one step back.

 cd ../..

• to make a directory in a specific location

 mkdir  directoryName

© 2024 Anand Raval. All rights reserved.

More from this blog

A

Anand Raval

118 posts

Hello I am Anand Raval , i contributed my work in robotics(arduino uno) , fronted web devloper,competitive programming, now currently focusing on #90DaysOfDevops