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-paste-alert true
The file manager is pantheon-files, so simply running
works. Because pantheon-files does not run in the background by default and generates plenty of terminal output:
[_LOG_LEVEL_INFO 11:43:27.546677] Application.vala:155: Files version: 0.2.1
[_LOG_LEVEL_INFO 11:43:27.546761] Application.vala:157: Kernel ...
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.EndSessionDialog.Open uint32:2 uint32:0 uint32:0 array:objpath:
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? Because with super user privileges, everything can be done on your system (as it has access to all files and your system's whole functionality). Remove every ...
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 manually create it with the terminal, just follow Huey's steps.
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-custom-command ''
org.pantheon.desktop.gala.behavior hotcorner-bottomright 'none'
org.pantheon.desktop.gala.behavior hotcorner-topright 'none'
You can use:
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-text-editor /path/to/file & exit
setsid scratch-text-editor /path/to/file ; exit
scratch-text-editor /path/to/file & disown ; exit
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. Many applications invoke the xdg-open command internally.
Inside a desktop environments like GNOME, KDE, or Xfce), xdg-open simply passes the ...
For this session
Simply run this command:
alias key='your long command'
Add the commands as described above into .bash_aliases.
Open scratch with the Applications menu and edit the file .bash_aliases in your home directory. It's a hidden file, so press Ctrl+H to see it.
Or you can type in the terminal: scratch-text-editor ~/.bash_aliases
@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 > terminal > settings > unsafe paste alert
Uncheck the unsafe-paste-alert.
Not quite what you wanted, but here was what I was able to find:
dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1.Manager.PowerOff" boolean:true
dbus-send --system --print-reply --dest=org.freedesktop.login1 /org/freedesktop/login1 "org.freedesktop.login1....
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.elementary.terminal
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 sudoer user, do the following:
sudo usermod -l newUsername oldUsername
This changes your username but not your home folder. If you're okay with having a ...
I don't think there is an command for this, but you can edit a file.
Create/edit the following file:
And change it to this:
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 imagemagick
then we will use the montage command:
montage *.jpg -tile 5x -geometry 200x+10+0 montage.jpg
and it gives an output like this:
Click for a bigger ...
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 command:
sudo add-apt-repository --remove 'deb [arch=amd64] https://packages.elementary.io/appcenter xenial main'
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
Removing an important application/drivers that will make your desktop unusable, for example sudo apt-get remove wingpanel* slingshot*
How to reduce the danger
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 setting several variables whose name start with HIST. In particular, HISTCONTROL is a list of options to tune the behavior. If the option ignoredups is included, ...
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 believe this is because
/etc/rcS.d/S70screen-cleanup is running via upstart much earlier than it expects to have run, and is failing to correctly clean up that ...
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/pegasus
Creating an alias is quite simple, and it opens a whole realm of possibility for adding shortcuts to your terminal usage.
Open up ~/.bashrc in your favourite text editor, and add the following to the end:
alias <string>='<full and long command>'
For your specific example:
Again, adding to the end of the .bashrc file: