• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / Ubuntu / How To Open A File In A Directory In Linux Terminal

How To Open A File In A Directory In Linux Terminal

By Sourabh / July 19, 2022 Category: How To, Ubuntu

Learn how to open a directory in terminal Linux and how to open a file in a directory in Linux terminal. Here is how to open file from terminal Ubuntu or open folder from terminal Ubuntu.

open folder from terminal ubuntu

Using cd command. The cd or change directory command allows you to change your directory, or in other words, open a new folder. When you open the Terminal, you are in your home directory. The following command will help you in opening the folder of your choice:

cd /path/to/file

To open a directory in a terminal, you use the cd command to change your current directory. This essentially opens that folder and places you in it. Note that using cd command alone with no arguments, takes you back home (it takes you out from the folder).

It must be known to all that the tilde symbol (~) represents our home directory. You can use this symbol in the cd command to move to a folder in your /home/[user]/ directory. Also, the pwd command stands for print working directory. If you want to know the exact directory path where you are currently. Simply run the pwd command to do so.

Using cd Command

The / symbol with the cd command helps you in directly opening the root folder.
The ‘..’ symbol with the cd command helps you in navigating up one directory level:
The ‘-’ symbol with the cd command takes you in back to the previous folder you were in.

Primary Sidebar

Latest Posts

Delete Directory And Contents Recursively Without Prompt On Linux

Check User Login History In Ubuntu Linux Command Line

Use Locate Command To Find File In Linux Terminal By Name

How To Change Terminal Color In Ubuntu Command Line

How To Run Fsck Manually In Linux To Fix Unexpected Inconsistency

How To Fix Broken Packages On Ubuntu From Terminal

Re Execute The Previous Command In Linux Ubuntu Command Line

How Much RAM Is Needed For Ubuntu PC

How To Find Large Files And Directories In Linux Command Line

How To Use Clear Command History In Linux Terminal

© 2026 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap