How to open Nautilus at current command line directory?

1

This quick tip is going to show beginners how to add ‘open as administrator’ or ‘open as root’ into Nautilus context menu in Ubuntu 13.10 Saucy.

With this feature enabled, you can quickly open files and folders in Nautilus with root (super user) privilege. This also works on Linux Mint 16 Petra if you’re using Nautilus 3.8.x.

To get started:

1. Open Ubuntu Software Center, search for and install gksu. It allows graphical programs to ask a user’s password to run program as root / administrator.

2. Open Nautilus file browser, press Ctrl+H to view hidden files & folders. Navigate to USER Home -> .local -> share -> nautilus -> scripts.

Create an empty document under this directory named ‘open-as-administrator’

3. Open this file with Gedit, copy and paste following codes into the file and save.

#!/bin/bash
#
# this code will determine exactly the path and the type of object,
# then it will decide use gedit...

0 0
2
From: William Case To: Stefano Sabatini Cc: gnome-list gnome org Subject: Re: Transferring current path in nautilus, file browser to command line ?? Date: Sat, 25 Nov 2006 13:53:27 -0500 Hi; It was over a year ago when I last used it --- FC4 I think. On Sat, 2006-11-25 at 19:31 +0100, Stefano Sabatini wrote: > On date Saturday 2006-11-25 12:30:53 -0500, William Case, wrote: > > Hi; > > > > I know there is a way or a command or something, which can be used to > > insert the current path into a terminal command. But, I forget and > > can't find it again. > > > > e.g. Using the file browser I find a file I am looking for, > > say /usr/applicationfile/foo. Now in the gterminal (open at the same > > time) I want to $ cat 'foundfile/foo'. How do I automatically > > insert /usr/applicationfile/foo > > > > Remind me how, please ?? > > Not sure about what you want. > As I remember, if I had gone to a directory or file using nautilus file browser and decided to do something at a command...
0 0
3

The following entry is based on the post “Nautilus Script to Launch a Terminal” by Linerd.

Problem

For navigating in the file system, I usually use Midnight Commander. However, sometimes it’s useful to switch to a graphical file manager, which is Nautilus under Gnome. For instance, browsing images with Nautilus is easier since it shows thumbnails. After using Nautilus for a while, I want to continue my work in a terminal (my favorite is konsole) in the current directory. How to do that?

Related work

There is a plugin in the repositories called “nautilus-open-terminal”. By default, the plugin calls gnome-terminal and it seems konsole is not supported :(

Solution

In this post, I found a simple and working solution. Here is the script:

The konsole modification was suggested by James in a comment in the previously referred post.

Installation: Save it in the directory $HOME/.gnome2/nautilus-scripts under the name...

0 0
4

Bethea, Allen. "How to Open a PDF File From the Command Line in Ubuntu." Small Business - Chron.com, http://smallbusiness.chron.com/open-pdf-file-command-line-ubuntu-56801.html. Accessed 28 April 2018.

Bethea, Allen. (n.d.). How to Open a PDF File From the Command Line in Ubuntu. Small Business - Chron.com. Retrieved from http://smallbusiness.chron.com/open-pdf-file-command-line-ubuntu-56801.html

Bethea, Allen. "How to Open a PDF File From the Command Line in Ubuntu" accessed April 28, 2018. http://smallbusiness.chron.com/open-pdf-file-command-line-ubuntu-56801.html

Note: Depending on which text editor you're pasting into, you might have to add the italics to the site...

0 0
5

One great feature that Windows users have long enjoyed is being able to open a command prompt window to the current folder from the right click context menu when using Windows Explorer. For anyone who is playing around or made the switch to Ubuntu, will find this feature is missing when using Nautilus file manager.

It's not because this functionality does not exist, it's just not enabled by default. Of course, since Ubuntu is Linux based, the equivalent of a command prompt in Windows is a Terminal Window (which means 'Open in Terminal ').

Here's two methods you can use to install Open in Terminal to the right click context menu in Nautilus.

The easiest method is to install from a terminal window.

Just click on Applications \ Accessories \ Terminal .

Once the window opens, copy the following command to the prompt and press Enter (you will be asked to enter your password when prompted):

sudo apt-get install nautilus-open-terminal...

0 0
6

September 27th, 2006 mysurface Posted in nautilus, X11 | Hits: 52566 | 12 Comments »

Actually every applications run under linux has its command line and also options to manipulate, check out nautilus with

nautilus --help

Why I need to specified options to load up nautilus? It seems to be accesible on just click on it?

The reason is I am a fluxbox user, by running nautilus, it loaded gnome desktop as well, I don’t want that, therefore I do this:

nautilus --no-desktop --browser

–no-desktop, don’t load desktop, and –browser to make nautilus act like file browser, else when open a folder, it spawn another new windows.

The reason I like nautilus, because it allow me to access samba easily by doing this

smb://username@192.168.1.5

You can access fonts, gnome themes like

fonts:/// themes:///

It supports burn iso to cd or dvd, by just right click and select to burn. A lots more yet to be...

0 0
7

Ever been doing some work at the command line when you realized… it would be a lot easier if I could just use the mouse for this task? One command later, you’ll have a window open to the same place that you’re at.

This same tip works in more than one operating system, so we’ll detail how to do it in every way we know how.

Open a File Browser in Windows

We’ve actually covered this before when we told you how to open an Explorer window from the command prompt’s current directory, but we’ll briefly review: Just type the follow command into your command prompt:

explorer .

Note: You could actually just type “start .” instead.

And you’ll then see a file browsing window set to the same directory you were previous at. And yes, this screenshot is from Vista, but it works the same in every version of Windows.

If that wasn’t good enough, you should really read how you can navigate in the File Open/Save dialogs with just the...

0 0
8

One shell to rule them all, one shell to find them, one shell to bring them all and in the same distro bind them.

Command line is one of the many strengths of Linux based systems. Why is it a strength? There is no one answer; there are many answers. I agree that the graphical user interface (GUI) makes it easier for a user to interact with their system and that's what new users may need to get started with Linux; that's what I needed when I was starting off with Linux back in 2005. But as I matured as a user I found CLI (command line interface) was more efficient than fiddling with the buttons of a tool.

CLI also allows users to be independent of distros. Just look at the derivates of Ubuntu, even if they use the same code-base they have different tools to do the same job. Different desktop environments on the same distro need different ways to perform the same task. A user has to un-learn and then re-learn the process of doing the same thing while they hop...

0 0
9

The su (short for substitute user) command makes it possible to change a login session's owner (i.e., the user who originally created that session by logging on to the system) without the owner having to first log out of that session.

Although su can be used to change the ownership of a session to any user, it is most commonly employed to change the ownership from an ordinary user to the root (i.e., administrative) user, thereby providing access to all parts of and all commands on the computer or system. For this reason, it is often referred to (although somewhat inaccurately) as the superuser command. It is also sometimes called the switch user command.

Advantages of Using su

su is usually the simplest and most convenient way to change the ownership of a login session to root or to any other user.

More importantly, it provides a safer way for administrators on multi-user systems (as well as for users on home computers or other single-user systems)...

0 0
10

Use encfs (available as a package on most distributions). To set up:

mkdir ~/.encrypted ~/encrypted encfs ~/.encrypted ~/encrypted # enter a passphrase mv existing-directory ~/encrypted

The initial call to encfs sets up an encrypted filesystem. After that point, every file that you write under ~/encrypted is not stored directly on the disk, it is encrypted and the encrypted data is stored under ~/.encrypted. The encfs command leaves a daemon running, and this daemon handles the encryption (and decryption when you read a file from under ~/encrypted).

In other words, for files under ~/encrypted, actions such as reads and writes do not translate directly to reading or writing from the disk. They are performed by the encfs process, which encrypts and decrypts the data and uses the ~/.encrypted directory to store the ciphertext.

When you've finished working with your files for the time being, unmount the filesystem so that the data can't be accessed until you type...

0 0
11
...
0 0
12

March 5th, 2011 mysurface Posted in Text Manipulation, xmllint | Hits: 297400 | 103 Comments »

Do you have a large XML to analyze? to query for info? Maybe you are using a XML viewer, a string search for that. But if your XML have a proper structure and you have understand enough for the structure, you may want to consider to use XPATH.

[Q] What is XPATH?
XPath is a “language” for finding information in an XML document. Something like SQL, it has its own syntax to help you to query for your info in an XML. To know more about XPATH, can check out this XPATH tutorial.

[Q] Is there any XPATH command that I can use to query my XML?
xmllint, which comes with libxml2.

xmllint provides you a shell where you can continuously to query your XML.

xmllint --shell myXML.xml

Shell mode is also a good way for you to learn up XPATH, type ‘help’ in the xmllint shell shows you a list of command it support.

Take books.xml sample as...

0 0
13

A file manager or file browser is a computer program that provides a user interface to manage files and folders. The most common operations performed on files or groups of files include creating, opening (e.g. viewing, playing, editing or printing), renaming, moving or copying, deleting and searching for files, as well as modifying file attributes, properties and file permissions. Folders and files may be displayed in a hierarchical tree based on their directory structure. Some file managers contain features inspired by web browsers, including forward and back navigational buttons.

Some file managers provide network connectivity via protocols, such as FTP, HTTP, NFS, SMB or WebDAV. This is achieved by allowing the user to browse for a file server (connecting and accessing the server's file system like a local file system) or by providing its own full client implementations for file server protocols.

Directory editors[edit]

A term that predates the usage of...

0 0