Nautilus is the graphical file browser within the GNOME desktop. You utilize it for accessing and managing recordsdata and folders in your system.
You too can handle recordsdata and directories from the terminal although not everybody prefers that.
Nonetheless, you could encounter conditions the place it’s a must to change between the terminal and file supervisor.
There are numerous methods to work together between the Nautilus file supervisor and terminal. Surprisingly, not many Linux customers learn about them.
For instance, in Nautilus, right-click and select ‘Open in terminal’ possibility and you may open the present listing location within the terminal.
That is simply one of many many examples I’m going to share with you on this article.
1. Drag and drop to get absolutely the path
When you drag and drop a folder or a file to a terminal, its absolute path will likely be pasted on the terminal display.
This helps if you find yourself deep contained in the listing construction within the file browser and do not wish to kind the whole path within the terminal.
2. Enter a listing
It is just like what you noticed above. In case you are deep contained in the listing construction and do not wish to kind the whole path for switching to the listing, this trick helps.
Kind the cd command within the terminal after which drag and drop to enter into the listing.
3. Open a file in editor
Equally, you’ll be able to open a file for enhancing with Nano or Vim editor.
Drag and drop a file to nano
command to open it for enhancing.
4. Open a file for enhancing with sudo
Identical as above however this time, you open the file for enhancing with sudo entry.
5. Drag a number of recordsdata, if the command helps a number of arguments
You too can drag and drop a number of recordsdata to get their absolute paths. This can be utilized with instructions that settle for a couple of argument.
For instance, the diff command checks the distinction between two recordsdata. Enter diff
after which drag and drop the recordsdata you wish to verify for variations.
6. Copy and paste from textual content recordsdata
Studying a doc and should run a command talked about in it? You may after all copy paste within the terminal.
Nonetheless, a faster approach is to pick out the textual content and drag and drop it to the terminal.
This trick works with GNOME-Sushi preview as properly.
7. Drag and drop from browser
Just like the textual content recordsdata above, you can even drag and drop textual content from browsers. This helps in following tutorials whereas doing it on the similar time.
8. Embed terminal in Nautilus
Cannot stay with out the terminal? Embed it straight within the file supervisor. This fashion you do not have to open a terminal individually.
The factor right here is that should you change to a different listing within the file browser, it mechanically switches the straight within the embedded terminal additionally.
You may carry out many of the above-mentioned drag and drop operations within the Nautilus embedded terminal additionally. For instance, seek for a particular textual content in bashrc, by dropping the .bashrc
file and utilizing grep.
9. Drag recordsdata between tabs of the embedded terminal
Each terminal and file supervisor helps the tabbed view. You may drag and drop recordsdata from one tab to a different.
For instance, to verify the shasum worth for an ISO, enter shasum command, then, drag and drop the file from one other tab, as proven under.
Extra on Nautilus and terminal
Favored the following pointers? Perhaps you’ll wish to be taught extra such suggestions.
If you wish to get extra out of the Nautilus file supervisor, listed below are a couple of suggestions for you.
Listed here are some terminal tricks to discover.
💬 Are you aware every other such cool tip that mixes the terminal and the file supervisor? Why not share it with us within the remark part under?