I can navigate my files quite fast through terminal. Faster than double clicking... open... look, double click... etc.
How do I open a directory in the Ubuntu GUI? For example:
cd projects
{some cmd} client_project
Then voila, it opens in the Ubuntu GUI as if i navigated manually?
Also, how can I open a URL in my default browser via terminal. It'd be awesome to go: F12
open http://google.com
And Chrome opens it up.
To Open Directory:
To open a Folder from terminal type the following,
or
i.e
Simply typing nautilus will take you file browser,
To Open URL:
You can type any one of the following in terminal,
If you want to open two URL's at the same time then leave some space after the first URL and type the second,
Note:
openurl
instead ofx-www-browser
you should edit the .bashrc filegedit ~/.bashrc
In the bottom of the file add the following lines
Now you can open URLs by typing,
Instead of typing all the quotes etc. one could use:
Works with directories containing spaces in their names.
You can just call the aplication. Both Nautilus and Chrome accept path (url) as parameter.
nautilus /directory/subdirectory/subsubdirectory
or
cd /directory/subdirectory/subsubdirectory
and thennautilus .
(the dot is important -- it says to Nautilus to open the current directory)google-chrome www.google.com
or
x-www-browser www.google.com
-- this command calls the browser set as default (so if your default browser is Chrome, it will open Chrome)Nope, the above answers are OK, but this is what I think you are looking for:
I was just experimenting today, and it worked. Isn't it fabulous?
Open Directory:
To open a Directory or Folder from terminal.
Or
The ampersand
&
is used; so the process get start into the background and we can continue to use the shell or terminal without waiting for script to get finished.Note: For better result use absolute path.
Open URL
Type any one of the following in terminal.
To close directory, URL, etc.:
To open a directory/ folder
You can use,
nautilus .
and press enter to open the current directory.To open path specified location try the following.
E.g. If you want to open Music folder under this location:
Then execute the following.
To open a URL via the terminal
E.g. Lets open stackoverflow.com via terminal
(Google Chrome)
(Firefox)
The easy way is to paste the url file in the address box of Firefox, at least, haven't tried other browsers, and when you hit enter Firefox shows the real address of the url. Paste that in the address box. Works for me