Verification: a143cc29221c9be0

Open php files in ubuntu

Open php files in ubuntu

Open a Folder In the File Manager (Nautilus)

The latest versions of Ubuntu, like Ubuntu 20.04 LTS or Ubuntu 21.04, come with a default file manager by the name of Nautilus. This open-source file manager created for our GNOME desktops gives us a way to manage our files and folders.

You can access the Nautilus File Manager in the following ways:

1.Searching for the term ‘Nautilus’ from the system Dash:

Search for Nautilus

2. Searching for the term Files or File Manager from the system Dash:


3. Accessing the File Manager from the Files icon in the Ubuntu Dock/Activities panel.

File Manager in Ubuntu Dock

The File Manager opens in your Home folder by default. In Ubuntu you can open your required folder by double-clicking it, or by choosing one of the options from the right-click menu:Advertisement

  • Open
  • Open In New Tab


  • Open In New Window

Open Ubuntu File Manager

Search and Open a Folder through Dash

The Dash search lets you open a folder directly, rather than browsing it from the File Manager. Simply type the folder name in the Dash and the search results will display based on your criteria.

Search folder by using Dash

Through a simple click, you can open the relevant folder(see the path in case multiple search results show).

Open a folder In the command line (Terminal)

The Ubuntu command line, the Terminal is also a non-UI based approach to access your folders. You can open the Terminal application either through the system Dash or the Ctrl+Alt+T shortcut.

Here are some of the commands and symbols that will help you in browsing folders in the command line:


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

Use the cd command

In the above image, we have first listed the folders in the current directory through the ls command and then opened the Downloads folder through the cd command. The command prompt of the Terminal, by default, shows the current folder you are in.

The tilde (`) symbol

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.

In the following image, I will open the snap folder from my home directory, and then directly open the Downloads folder from my home directory by using tilde:

Use the Tilde symbol

The tilde symbol here has helped me in avoiding going back to the home folder first and then opening the Downloads folder.


The pwd command stands for print working directory. If you want to know the exact directory path you are currently in, simply use the following command to do so:

$ pwd

The pwd command

The ‘/’ symbol

The / symbol with the cd command helps you in directly opening the root folder.

$ cd /

The / symbol

The ‘..’ symbol

The ‘..’ symbol with the cd command helps you in navigating up one directory level:

$ cd ..

The .. symbol

The ‘-’ symbol

The ‘-’ symbol with the cd command helps you in going back to the previous folder you were in, before navigating to the current folder. You can think of this command as the ‘Previous Channel’ button on your tv remote control.

In the following example, I was in the /home/user/Downloads folder. Then I used the ‘..’ symbol to go back to my home folder. Now if I want to go back to the Downloads folder, I can use the following command to go back to the Downloads folder:

$ cd –

The - symbol

Open a folder in the Terminal through the File Manager

In order to open a folder from the File Manager to your Terminal application:

Right-click the selected folder and select Open in Terminal from the menu as follows:

Open file manager from terminal

Open a folder in the File Manager through the command line

If you are in the Ubuntu command line and want to open a specific folder in the UI File Manager, you can use one of the following two ways:

$ nautilus /path/to/that/folder


$ xdg-open /path/to/the/folder