21 votes
Accepted

How do I disable the sudo paste warning?

Run this command in terminal to disable: gsettings set org.pantheon.terminal.settings unsafe-paste-alert false and then this to re-enable it: gsettings set org.pantheon.terminal.settings unsafe-...
user avatar
  • 905
13 votes
Accepted

How can I start the default file manager from terminal?

If you want to use the prefered file manager you can use xdg-open, to open for example the file manager in Projects/ you can use xdg-open Projects/ Source : xdg-open
user avatar
11 votes

How can I start the default file manager from terminal?

The file manager is pantheon-files, so simply running pantheon-files works. Because pantheon-files does not run in the background by default and generates plenty of terminal output: huey@galactica:...
user avatar
  • 732
11 votes
Accepted

What is the command behind the default shutdown menu in Freya?

You can launch the shutdown menu with the following command dbus-send --session --print-reply --dest=com.canonical.Unity /org/gnome/SessionManager/EndSessionDialog org.gnome.SessionManager....
user avatar
  • 2,869
11 votes

Why is running commands with sudo dangerous?

What is sudo? sudo is running the following command with super user (root) privileges. That's basically the "administrator" you might know from other platforms. But why is this dangerous? ...
user avatar
  • 2,872
11 votes
Accepted

How can I create a symbolic link?

The latest version of Pantheon Files on freya allow you to drag and drop files by right-clicking on them. When you drop it a contextual menu appears letting you copy it, move it, or create a link. To ...
user avatar
  • 341
10 votes
Accepted

How can I configure Hot Corners from Terminal?

It can be done via gsettings. Find the key you need(play around with grep to find the exact key, its easy): # gsettings list-recursively | grep hotcorner org.pantheon.desktop.gala.behavior hotcorner-...
user avatar
  • 862
9 votes

How can I start the default file manager from terminal?

Starting with Juno release, the commands have all changed. They're adopting RDNN. For files: io.elementary.files
user avatar
8 votes
Accepted

How can I launch a command from terminal and then close the terminal?

You can use: nohup nohup scratch-text-editor /path/to/file & Then close terminal with Ctrl+D If you want direct in single command: Use exit at the end of the command. like, nohup scratch-...
user avatar
  • 7,877
8 votes

Restart GUI without rebooting the system

This worked for me: sudo service lightdm restart
user avatar
7 votes
Accepted

How do you open files from the command line without knowing the specific program name for the file?

Yes there is, it's called xdg-open and should be installed by default. You can read more about it in ArchWiki: xdg-open is a desktop-independent tool for configuring the default applications of a ...
user avatar
  • 3,510
7 votes
Accepted

How can I set up an alias for a command?

For this session Simply run this command: alias key='your long command' Permanently Add the commands as described above into .bash_aliases. Open scratch with the Applications menu and edit the ...
user avatar
  • 2,869
7 votes
Accepted

Restart GUI without rebooting the system

All you need to do is restart LightDM as root, like so: sudo restart lightdm
user avatar
7 votes

Name of elementary OS terminal (to open new terminal window from within Terminal)

I know this is an old thread, but the approved answer is now incorrect and this is still the top Google link for this question, so in new versions of Elementary OS, the terminal is called io....
user avatar
7 votes

Why is my Elementary OS Not Updating via terminal / Apps are not updating from App Center?

To solve the problem "public key is not available: NO_PUBKEY A74F73EFFE70B91C", import the key: wget -q "http://packages.elementary.io/key.asc" -O- | sudo apt-key add -
user avatar
6 votes

How do I disable the sudo paste warning?

@crow is totally right, another way of doing the same thing is using the dconf-editor sudo apt-get install dconf-tools then open it from Slingshot > Dconf Editor Go to path, org > pantheon > ...
user avatar
6 votes
Accepted

What is the command for the shutdown dialogue in Loki?

Not quite what you wanted, but here was what I was able to find: Shutdown directly: dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1....
user avatar
  • 4,224
6 votes

Name of elementary OS terminal (to open new terminal window from within Terminal)

The command to run is: pantheon-terminal
user avatar
  • 4,224
6 votes
Accepted

change username on elementary OS properly

This has been answered in another question on another StackExchange site but this is basically what you need to do: While the user you need to modify is logged out and you're logged in as another ...
user avatar
5 votes
Accepted

Elementary Tweaks - How can I Toggle "Prefer Dark Theme" via Terminal?

I don't think there is an command for this, but you can edit a file. Create/edit the following file: ~/.config/gtk-3.0/settings.ini And change it to this: [Settings] gtk-application-prefer-dark-...
user avatar
  • 1,039
5 votes
Accepted

Cannot use F10 in command-line applications in Pantheon Terminal

To be able to use the F10 inside the terminal edit your settings.ini file at ~/.config/gtk-3.0/settings.ini and add the line: gtk-menu-bar-accel=""
user avatar
  • 2,869
5 votes

Is there a tool/method to dynamically layout a grid of images for scrapbook cutouts?

The closest I have found is montage from image magik. It's not quite what you want, and you may have already seen it and decided it won't work. First, install imagemagik: sudo apt-get install ...
user avatar
  • 1,059
5 votes
Accepted

Remove or ignore duplicate entries in terminal history

The command history is a feature of the shell, which is bash, rather than the terminal emulator Pantheon-Terminal. The behavior around duplicates in the bash command history can be configured by ...
user avatar
5 votes
Accepted

How can I find out what a Terminal command will do before I run it?

There's a great online tool called ExplainShell that will break down the command into its individual parts and explain what each part does. For example, see this page which explains the following ...
user avatar
  • 9,734
4 votes

Why is running commands with sudo dangerous?

Sudo is used to give a normal user the permissions as an administrateur. One of the bad things that might happen to you Using a command to remove the whole / folder, for example sudo rm -rf /usr ...
user avatar
4 votes
Accepted

Permissions denied for screen

It appears to be a bug primarily affecting server installs and other headless versions of Ubuntu. It can be fixed with sudo /etc/init.d/screen-cleanup start. According to the bug description: I ...
user avatar
  • 732
4 votes

How can I create a symbolic link?

To create a symbolic link from /home/huey/galactica to /usr/local/pegasus, meaning that the galactica directory in the home folder points to the pegasus folder: ln -s /home/huey/galactica /usr/local/...
user avatar
  • 732
4 votes

How can I set up an alias for a command?

Creating an alias is quite simple, and it opens a whole realm of possibility for adding shortcuts to your terminal usage. In General: Open up ~/.bashrc in your favourite text editor, and add the ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible