QueHow

A How-To and wiki Blog

  • Operating System
    • Windows
      • Windows 10
      • Windows 7
    • Linux
  • Software
    • Application Software
    • Microsoft Office
      • Outlook
      • Word
      • PowerPoint
  • Internet
    • Browsers
      • Mozilla Firefox
      • Google Chrome
    • CMS
    • Tips & Tricks
  • Website
    • ecommerce
    • Google
    • Social Networking
    • General Websites
  • Mobile
  • Email
    • Gmail
  • Wiki

How we can Change the Directory in Ubuntu

By Neha T Leave a Comment

This article will help you to know that how you can change the Directory in Ubuntu. For an instance, you are required to change the directory to access the folders & files stored in that particular location, then you have to use “cd” command for it.

The “cd” command can be used in numerous ways which will surely depend upon your requirement. To access cd command i.e change directory command, follow the steps illustrated below:

Steps to Change the Directory in Ubuntu

Step 1: To change the directory, firstly you must know where you are, and for that you need to type “pwd”, this will show the working directory name.

I got the result as “/home/ubuntu14” as shown in the image below.

How-we-change-the-Directory-in-Ubuntu-Step1

Step 2: Now I want to go to the Desktop, so that I can easily access the folders available under my Desktop.

Type “cd Desktop” and press enter.

How-we-change-the-Directory-in-Ubuntu-Step2

Step 3: Here, you can see the directory is changed to the Desktop.

How-we-change-the-Directory-in-Ubuntu-Step3

Step 4: If any time, you need to return to the home directory, type “cd ..”

How-we-change-the-Directory-in-Ubuntu-Step4

Step 5: By using the above command you are redirected to the home path as shown in the figure below.

How-we-change-the-Directory-in-Ubuntu-Step5

Step 6: If want to locate a particular path, then you have to mention the full path.

For an example: “cd /home/ubuntu14/Desktop” where ubuntu14 is the username.

How-we-change-the-Directory-in-Ubuntu-Step6

Step 7: You can see the output of the above command by just pressing enter.

How-we-change-the-Directory-in-Ubuntu-Step7

Step 8: Suppose you are required to go back to the parent directory, no matter where you currently are. Type the “cd ..” command and press enter, look at the o/p in the figure corresponding to the command.

If your choice changes suddenly and you need to access any folder that resides in the Desktop, then irrespective of the current location type “cd ~/Desktop”.

How-we-change-the-Directory-in-Ubuntu-Step8

Step 9: Now you are at the “Desktop” location in the terminal. Here, you can access the files stored in this particular location.

How-we-change-the-Directory-in-Ubuntu-Step9

NOTE: Some of the other options used with “cd” command are:

  1. “cd -“ used to return to the previous directory
  2. “cd /” is used to go to the Root directory

You Might Also Like:

how-to-copy-and-move-files-and-directories-in-ubuntuHow to Copy and Move Files & Directories in Ubuntu How-to-install-oracle-java-in-ubuntuHow to Download and Install Oracle Java in Ubuntu how-to-install-true-type-fonts-in-ubuntuHow to Install TrueType Fonts in Ubuntu How to use VIM Editor in Ubuntu? how-to-install-and-configure-apache-web-servers-in-ubuntuHow to Install and Configure Apache Web Server in Ubuntu how-to-use-sed-command-in-ubuntuHow to Use SED Command in Ubuntu how-to-install-ubuntu-on-windows7-using-vmware-workstationHow to Install Ubuntu on windows 7 using Vmware Workstation how-to-install-and-configure-ssh-in-ubuntuHow to Install and Configure SSH (Secure SHell) in Ubuntu

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Most Viewed

  • How to Install and Use TELNET in Ubuntu
  • How to install Hindi fonts in MS Word
  • How to Change a File Extension in Windows 10?
  • How to create a flipkart account in 3 simple steps
  • How to Change Monitor Refresh Rate in Windows 10?
  • How to install IIS on Windows 10
  • How to Insert Clickable Checkbox in MS Word 2016?
  • How to Set Auto Reply in Outlook 2016?
  • How to Login as Administrator in Windows 10?
  • How to Check RAM Size and System Type in Windows 10?

Recent Additions

  • How to Add Hyperlink to Another Sheet in Excel?
  • How to Add and Remove Watermark in Excel
  • How to use Relative and Absolute Cell Reference in Excel?
  • How to Enable and Disable Scroll Lock in Excel?
  • How to Use INDEX and MATCH Functions in Excel?
  • How to Make Bar Graph in Excel?
  • How to Count Duplicate Values in Excel?
  • How to Wrap Text in Excel?
  • How to Round off Numbers in Excel?
  • How to Create a Bell Curve in Excel?

Related Searches

  • How to Kill a process in Windows 10?
  • How to Remove Background Noise in Power Director?
  • How to enable and configure gmail keyboard shortcuts
  • How to Create Cross-reference in MS Word 2016?
  • How to Filter Data in Excel?

Copyright © 2023 · QueHow · Contact Us