Ubuntu – How to open a folder in linux via terminal?

command linedirectory

How can I open a folder in a dir?

say I change my current directory to:
cd /root/dir/

then I list all the files there: ls
folder1 folder2 folder3

Now I want to open folder1.
If I try the "./" I get:
bash: ./folder1: Is a directory

How can I do so without having to type cd again ie: cd $(pdw)/folder1

Best Answer

If you want to open the folder via the nautilus file manager, you can move to the wanted directory like you've mentioned cd /root/dir/ , check the folders under that path using ls and then if you want to open folder1 type:

nautilus folder1