• 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

Ubuntu 25.04 ‘Plucky Puffin’ Is Available To Download

How to Login as Root User in Linux Terminal

Install Firefox In Ubuntu Terminal Command Line

How To Check Kernel Installed Date In Linux Ubuntu

How To List All Kernel Modules That Are Loaded In Ubuntu

Enable Ubuntu Auto Login Without Password

Download Ubuntu 25.04 Official Default Wallpapers

How To Fix Initramfs Error In Ubuntu Command Line

How To Check All Available Kernel Version In Linux Ubuntu

3 Best Artificial Intelligence Domain Name Generators

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

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