How to open a folder in linux via terminal? [closed]
Solution 1:
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
Solution 2:
./
is used to execute file (Not to open directory).
(In)CLI Method: You can open folder in terminal by cd folder1
or dir folder1
or ls folder1
.
(To)GUI Method: If you want to open with file-manager (ex:nautilus) then typenautilus folder1
(for Ubuntu nautilus is default file-manager)
Solution 3:
I have found that simply typing gnome-open "any-oject"
opens any folder or file in the default program on Ubuntu.
If this happens to be a folder, it uses your default folder-explorer :)