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-...
- 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
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:...
- 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....
- 2,879
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? ...
- 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 ...
- 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-...
- 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
- 191
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-...
- 7,867
8
votes
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 ...
- 3,520
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 ...
- 2,879
7
votes
Accepted
Restart GUI without rebooting the system
All you need to do is restart LightDM as root, like so:
sudo restart lightdm
- 226
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....
- 251
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 -
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 > ...
- 61
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....
- 4,264
6
votes
Name of elementary OS terminal (to open new terminal window from within Terminal)
The command to run is:
pantheon-terminal
- 4,264
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 ...
- 892
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-...
- 1,038
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=""
- 2,879
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 ...
- 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 ...
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 ...
- 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
...
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 ...
- 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/...
- 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 ...
- 1,028
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
command-line × 56pantheon-terminal × 9
keyboard-shortcuts × 7
bash × 5
release-loki × 3
settings × 3
desktop × 3
shutdown × 3
release-freya × 2
updates × 2
display × 2
suspend × 2
files × 2
slingshot × 2
code × 2
startup × 2
launcher × 2
hot-corners × 2
release-hera × 1
applications × 1
graphic-drivers × 1
plank × 1
touchpad × 1
pantheon × 1
apt × 1