Questions tagged [command-line]

refers to the command line interface (CLI) and commands executed through the CLI

Filter by
Sorted by
Tagged with
0 votes
0 answers
14 views

can't make "sleep" command to run in executable script.sh using "io.elementary.terminal" command

As mentioned in the title, can't make sleep command to work in an executable script.sh with an io.elementary.terminal command is there something i'm missing? #!/bin/sh io.elementary.terminal -n -e &...
zensir's user avatar
  • 23
1 vote
1 answer
438 views

My temporary failure in name resolution error returned even after manually configuring /etc/resolv.conf

I have been using Elementary OS Odin for about a week. Several days ago I couldn't connect to the internet and pinging a domain name yielded the "Temporary failure in name resolution" error. ...
LemurLad's user avatar
0 votes
1 answer
142 views

Anaconda Navigator installed successfully but not opening in Elementary OS Hera. How can we resolve this?

I installed anaconda navigator and it installed successfully too. But when I write anaconda-navigator in terminal and press enter, the following screen comes but the anaconda-navigator does not start: ...
Maverick's user avatar
  • 101
1 vote
1 answer
2k views

How do I install flatpak apps systemwide via command-line?

I know that --user is enabled by default in Hera 5.1.7. But is it possible at all to install flatpaks system-wide for all users by command-line? I have tried $ sudo flatpak install --system com.github....
ethan's user avatar
  • 168
1 vote
0 answers
55 views

what command does elementary os use to maximize windows in hot corners?

What is the terminal command elementary os uses to maximize minimized windows? I know the parameters are to only maximize the active window if it is minimized and if it is maximized minimize it. so ...
guest's user avatar
  • 11
0 votes
0 answers
247 views

eOS 5.1 shutdown/suspend not working

I've stumbled upon a problem where selecting shutdown or suspend from the power menu (little power icon in the top right corner) doesn't do the desired action. Shutdown, and Restart, simply does ...
Erasmus Louw's user avatar
1 vote
1 answer
152 views

Set custom shortcut command not working as expected

I want to set a shortcut to open vscode in the current directory, I have tried code $(pwd) and alias s1="code $pwd" | s1 It is working in the terminal but not as a shortcut command, is there is a ...
Abdulrahman Khaled's user avatar
0 votes
1 answer
318 views

How do I create a toggle custom command shortcut to "show desktop" and "hide desktop"? Combine two shortcuts that view / hide desktop into one

Notice this guys reply here: https://elementaryos.stackexchange.com/a/401 - how do I compress / combine into a single shortcut? By using the wmctrl app, we can show / hide desktop in Elementary OS. ...
elementaryos-420's user avatar
0 votes
4 answers
3k views

Open elementary apps from the command-line

How can I open elementary apps from the command-line? Particularly Code and Files. I already found /usr/bin/io.elementary.files and /usr/bin/io.elementary.code, build they are not really convenient. ...
wout's user avatar
  • 183
0 votes
2 answers
319 views

How to minimize from active corners

I want to minimize a window through the active corners I only see that it can be done by means of a customized command, does anyone know what it would be? I would appreciate your help.
Saikol's user avatar
  • 3
0 votes
2 answers
196 views

Elementary OS 0.3.2 Freya 64-bit Ubuntu 14.04 downloading VLC

I've been trying to download the latest version of VLC which is 3.something (my elementary OS has vlc 2.1.6 rincewind). If I go to the Videolan download page or if I use Software Center they both ...
Hank Drastic's user avatar
1 vote
2 answers
1k views

Open pantheon terminal with starting command

How can I open pantheon-terminal with starting command to be executed? For example something like pantheon-terminal --start-with echo "Hello World!" should open new terminal window and execute the ...
ZobekPL's user avatar
  • 11
1 vote
0 answers
45 views

Emacs Nox End of File

Just installed Loki, coming from Ubuntu Gnome. Installed emacs-nox: sudo apt install emacs-nox As expected emacs opens my editor, but when I edit a file I often immediatley enter meta-shift-? (meta-...
Chris Pfohl's user avatar
1 vote
1 answer
77 views

Noise playback control from terminal

I would like to start/stop music from a bash script. Already tried looking in noise --help, but that lists none.
Ab014's user avatar
  • 121
0 votes
1 answer
33 views

How to read commands from a text file [closed]

I would like to write some commands into one file and then I want the command line to read the file and do all commands inside the file. Step by step. For example: C:\Users> project1.exe < ...
Ľubomír Masarovič's user avatar
2 votes
1 answer
2k views

change username on elementary OS properly

How to change username on elementary OS — e.g. linux@eos to dago@eos properly?
daGo's user avatar
  • 441
2 votes
3 answers
2k views

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

I am not able to update apps or the OS. While upgrading from the terminal, I am getting this error message: Do you want to continue? [Y/n] y (Reading database ... 271161 files and directories ...
Abhay Bh's user avatar
4 votes
1 answer
101 views

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

If I run into a Terminal command here in StackExchange or elsewhere on the Internet, how can I easily understand what this command will do so that I can make sure it's safe before I run it?
Daniel Foré's user avatar
  • 9,734
1 vote
2 answers
2k views

Turn off display without screenlock

Is there a terminal command? For istance, when i type: sleep 1 && xset dpms force off It turns off the display but enables automatically the screenlock (that instead I'd like to keep just ...
Alex Punkallo's user avatar
0 votes
2 answers
245 views

Startup command won't execute

I need to run the command at startup to calibrate my screen using Xcaliber xcaliber --bR=256 --bG=256 --bB=212 --gR=1.04 --gG=0.9600000000000001 --gB=1.01 So I tried to set it as a custom startup ...
neodyme's user avatar
  • 71
1 vote
2 answers
443 views

How to set startup commands for application´s in launcher shortcut?

How can i set startup commands for application´s in launcher shortcut? Example: I want to start my Browser with this command: opera --disable-reading-from-canvas --disable-webrtc-encryption or ...
MyAvatar's user avatar
0 votes
2 answers
329 views

I need to run exec bash to accsess Jekyll or Ruby for example

I installed chruby, ruby-install from this tutorial and changed .bashrc acording to it. I can use Jekyll to build websites now, but only after I run exec $SHELL. Otherwise bash tells me the command ...
bigfatbird's user avatar
1 vote
2 answers
186 views

Commands to start sub-Settings?

I rarely use most of the Settings, but those that I use more often (Shortcuts, Startup applications, Printers) I want them accessed really fast. For example I would like to be able to open with only ...
user avatar
0 votes
1 answer
143 views

Open url from terminal in chrome

When I click on the link just echoed, it is opened in firefox. Earlier such links from terminal were opened in chrome. But then I made firefox as my default browser. Then on wards these links are ...
jophab's user avatar
  • 103
2 votes
1 answer
192 views

Get the current song information from volume control (command, etc)

I was wondering if there's a way to get the current song in Elementary OS from the volume menu item. So, is there a command I can use to get it, or detect when the song changes? I'm essentially ...
Tristan Wiley's user avatar
1 vote
2 answers
790 views

Tap to click enabling with console Command

What is a command for enabling tap-to-click through console please? My trackpad's left/right buttons don't work on my laptop and I currently don't have a mouse at home I could use so I need it to be ...
user avatar
1 vote
1 answer
695 views

Command to show Plank dock

I want to keep the dock hidden and to show it with a short-key associated to a command. Is there a such command to show the Plank dock? When shown I would prefer to have it under rather than above ...
user avatar
6 votes
3 answers
9k views

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

Looking for the command to open a new terminal instance and suggestions I've found to use terminal or gnome-terminal are incorrect
wolf's user avatar
  • 4,314
7 votes
4 answers
21k views

Restart GUI without rebooting the system

How can I restart my GUI (X window server) from command line without rebooting the system? Which process(es) do I need to kill and do they automatically restart?
wolf's user avatar
  • 4,314
1 vote
2 answers
1k views

What is the command for the shutdown dialogue in Loki?

I asked the same question for Freya but in Loki the situation is different, none of the two dialogues can be triggered with those commands. gnome-session-quit --power-off used to trigger this ...
user avatar
0 votes
2 answers
260 views

Computer desktop is gone?

After fresh install I updated my elementary os. It said that I have to reboot. I didn't. I installed my amd drivers and then I rebooted. I rebooted it myself I didn't clicked reboot.The e symbol ...
ThetisClena's user avatar
0 votes
1 answer
109 views

I think I just broke elementary and have no idea what to do, can someone help?

I've made two stupid mistakes today: I mistakenly uninstalled a lot of programs through the terminal & I tried receiving help on the ubuntu stack exchange instead of here (which I didn't know ...
Aric's user avatar
  • 1
4 votes
3 answers
3k views

What's the hotkey to run a command?

In some distros there is a hotkey that opens a dialog box to run a terminal command. Does this exist in elementary OS, and if so what's the hotkey? If not, how can I add a custom hotkey?
koxmoz's user avatar
  • 111
2 votes
1 answer
1k views

How do I change the wallpaper through the command line?

Is there any DConf/Gsettings etc. interface for changing the wallpaper through the command line?
gone's user avatar
  • 125
-1 votes
1 answer
135 views

Why isn't `bash -c` working in this desktop/launcher?

I have a .desktop file to start Youtube-Viewer which is an application that runs in terminal. The command to use is something like youtube-viewer --video-player=mplayer. It works when I fire that in ...
user avatar
1 vote
1 answer
748 views

Syntax error after running every command in tmux

I am getting the same error after executing every command in tmux and after running it, and this is annoying: -bash: PROMPT_COMMAND: line 0: syntax error near unexpected token `;;' -bash: ...
serge1peshcoff's user avatar
3 votes
2 answers
620 views

Suspend from shortcut

I've tried to add a shorcut with the command: dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend in Freya with no result. When ...
Javi Ballester Tomàs's user avatar
7 votes
4 answers
7k views

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

I ran scratch-text-editor in terminal, but now I want to close the terminal without closing scratch. Is this possible, if so; how?
user3's user avatar
  • 1,059
6 votes
1 answer
1k views

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

I just installed the elementary-tweaks package on Freya, and was wondering if there was a way to control the Prefer Dark Theme option programmatically with a script, or directly via the terminal. I am ...
Peter Parker's user avatar
6 votes
2 answers
147 views

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

I'm looking for a tool that will layout images into grids dynamically without altering their proportions. The purpose would be to make cutting image printouts much faster for scrapbooking. I know a ...
johnp's user avatar
  • 315
0 votes
0 answers
173 views

Odd characters added to redirect command

When I run a simple bash statement I get extra characters in the redirect of that statement. Example, if I run for i in 12345 abcd 7890; do echo $i ; done > test.txt and then do a cat -A test.txt ...
Trent's user avatar
  • 1
1 vote
1 answer
174 views

Super/Windows+L, what command does it use?

I am unable to discover what command is been output on the use of Super+L key combination. gnome-screensaver-command -l is not it, dm-tool -lock also not. Does anybody know what it is?
rowan's user avatar
  • 111
4 votes
3 answers
859 views

How to prevent updating of a specific package?

I would like to update just the base of elementary system and not the all installed apps. I can run sudo apt-get install package-name to upgrade the package if it is already installed. Whereas I can ...
Aditya ultra's user avatar
  • 1,338
4 votes
1 answer
937 views

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

I've had success opening files from the command line if I know the program used to view the file. If I need to open a .pdf I can call evince filename. What do you do if you don't know which program ...
vim_usr's user avatar
  • 454
5 votes
2 answers
3k views

Installing NVidia Drivers - Blank Screen

I'm going through the steps to install my GTX 970 Driver onto my Elementary OS system but when I run the following command, I get a blank screen... sudo sudo service lightdm stop I believe I am ...
John Brooks's user avatar
4 votes
2 answers
2k views

Cannot use F10 in command-line applications in Pantheon Terminal

As title says - when launching "mc" in Pantheon Terminal the F10 key (used to signal "quit" for mc) is not received. The Gnome Terminal has the option to disable the "menu shortcut key F10". Is ...
SoftExpert's user avatar
2 votes
1 answer
2k views

"unable to execute /bin/chmod: Argument list too long" when I'm trying to use chmod command

This is how it happened: julian@JulianNB:~$ sudo chmod 644 ~/音樂/* [sudo] password for julian: julian@JulianNB:~$ sudo chmod 755 ~/音樂/*/ julian@JulianNB:~$ sudo chmod 644 ~/音樂/*/* sudo: unable to ...
Julian Lai's user avatar
6 votes
1 answer
1k views

How can I configure Hot Corners from Terminal?

For example, how can I set show applications menu to the top-left corner?
davidak's user avatar
  • 786
9 votes
2 answers
6k views

Why is running commands with sudo dangerous?

I know that sudo can do some bad things - there are warnings everywhere: But I'm interested as to what is likely to happen when using sudo - why is it so dangerous, and what can I do to reduce that ...
user avatar
11 votes
4 answers
23k views

How can I start the default file manager from terminal?

I have X11 Forwarding on, and want to use a graphical interface to manage files. How can I start the default file manager over ssh?
Huey's user avatar
  • 732