Link copied to clipboard!
Linux & Hosting

What are the commands for changing Directories in CentOS?

Rakshitha
Rakshitha
White-Label Services Specialist
Aug 1, 20202 min read
24

In this post, we will see about change directories command cd, which is used to move from one directory to the other. CentOS is a Community Enterprise operating system which mainly focuses on the server. It is a part of Linux Operating System Distribution, and it is free to use. First, open the terminal.

Total Time Needed: 30 Minutes

Required tools:

CentOS

Steps to Change Directories commands in CentOS

Step 1 : Type the Command
Enter the title to your How To Schema
What Are The Commands For Changing Directories In Centos 1
Step 2 :Move from One Directory to the Other
To move to dir1 type the command cd dir1 and press enter key.
What Are The Commands For Changing Directories In Centos 2
Move to file which is in another directory- To go to file, which is on another directory, specify the path after cd. For example, you want to go to Desktop, which in the root directory from dirA. Type cd /root/Desktop and press enter key.
What Are The Commands For Changing Directories In Centos 3
Step 3 : To Move One Step Back.
Type the command cd .. to move one step back to the previous directory.
What Are The Commands For Changing Directories In Centos 4
Step 4: To Go to the Home Directory of the User
Type the command cd and press enter key.
What Are The Commands For Changing Directories In Centos 5
Step 5: To Print the Path of the Directory that You are Working on
Type the command pwd (which means print working directory) and press enter key which will give you the path of the directory that you are currently working on.
What Are The Commands For Changing Directories In Centos 6

What are the basic commands for navigating and managing directories in CentOS?

To move files and directories in CentOS, you can use the "mv" command. To navigate directories, use "cd" to change to a specific directory, "ls" to list the contents, and "pwd" to display the present working directory. Managing directories can be done with "mkdir" to create a new directory and "rmdir" to remove an empty directory.

Conclusion

Hope you understand Change Directories commands in CentOS. If you have any doubts please contact Medha Hosting. Our Linux experts will help you.
Read Here: How To Use Terminal To Reboot, Shutdown CentOS?

Topics

CentOSfile directoriesVPS hosting
Rakshitha
Written by

Rakshitha

White-Label Services Specialist5+ years

Rakshitha specializes in white-label IT services and Linux server administration. She helps MSPs expand their service offerings through strategic outsourcing partnerships and provides expert guidance on Linux-based infrastructure solutions.

White-Label IT ServicesLinux AdministrationIT Outsourcing
Follow on LinkedIn

Need Expert Help?

Our team of cloud and IT experts is ready to help you solve your toughest challenges. Get personalized assistance today.