Questions tagged [command-line]
This tag is for questions that are about using the command-line interface (CLI), including the use of standard command-line tools and shell commands. However, for questions that are specific to each shell (like Bash, ZSH etc.), use the tag of that particular shell as well.
4,290
questions with no upvoted or accepted answers
4
votes
0
answers
1k
views
Error while encrypting a file with gpg -c filename
After installing gpg, when I tried to encrypt a file using it I am getting below error.
gpg -c test.sh
gpg: cancelled by user
gpg: error creating passphrase: Operation cancelled
gpg: symmetric ...
4
votes
1
answer
3k
views
Is there a command to either open a website or focus an open browser tab?
I'd love to be able to run a command such as firefox mail.google.com and have it:
Open the site in a new browser tab if it isn't already open (what calling firefox does by default)
Focus the tab for ...
4
votes
0
answers
447
views
GNOME Terminal Title as Number/Position of the tab
Searched and not found here. So posting it as fresh question.
Usage:
GNOME Terminal Version 3.4.1.1
Ubuntu 12.04
I used to open multiple tabs in GNOME Terminal. If the count is less then 4 or 5 I ...
4
votes
0
answers
4k
views
Fatal Python error/ImportError When Upgrading
When attempting apt upgrade or apt update-manager I receive the following error:
Setting up update-notifier-common (3.168.1) ...
Could not find platform independent libraries <prefix>
Could not ...
4
votes
0
answers
2k
views
Problem with wget and file extensions
I'm using wget to download a website that is a problem archive, some problems are available in html and some others are in PDFs in the same domain. The problem is when I use the option --adjust-...
4
votes
1
answer
4k
views
convert svg or ttf to otf, eot, woff
I'm looking for a command line software/script for linux/ubuntu that can help me convert svg or ttf to otf, eot and woff formats.
I've tried fontmin,webify, fontforge, eot-utils, sfnt2woff, ttf2woff ...
4
votes
1
answer
3k
views
Can one change the output path of cups pdf printer dynamically
One can call lpr to use cups-pdf printer to print a file to pdf, for instance foo.txt
lpr -P PDF foo.txt
When calling, the printer creates a directory called PDF in the $HOME directory and creates a ...
4
votes
0
answers
3k
views
How can I modify "cp -ru" to remove files in destination that no longer exist in source?
I have a directory with many subdirectories and several million files. Total size around 15GB. I have a brief window (preferably around 30 seconds) to mirror changes to this directory to a second ...
4
votes
0
answers
8k
views
How to create a wifi hotspot from the command line?
There are some good directions here for how to create a wifi hotspot by confguring a connection using the gui with wifi hardware that supports AP mode. However, I need to be able to do it within a ...
4
votes
0
answers
2k
views
fswatch | while read | xargs running command twice
Thanks in advance for any advice
I'm working on an fswatch command to launch a script when files hit the Downloads folder.
fswatch --event Created Downloads/ | (while read x; do echo $x | xargs -0 ...
4
votes
1
answer
10k
views
Must manually restart lightdm to have it appear
I recently did an Ubuntu command-line install on my work laptop, then install Mate (core) and lightdm. I have an Intel graphics driver. When I turn on my computer, it boots to a black screen. Pressing ...
4
votes
1
answer
127
views
D missing from terminal keybinds - have to add it on every login
I have been running Ubuntu Gnome 15.04 on my Thinkpad T420 for a couple months now, and so far it has been great. However, A couple days ago my "d"(lowercase only) key stopped working in any terminal ...
4
votes
0
answers
6k
views
Black screen when accessing Ubuntu remote host via VNC and vino-server
I have a headless server and I am trying to setup a VNC connection in order to access it with a GUI. Now I have only root access via ssh.
I have followed most of the instructions given here Enable ...
4
votes
0
answers
9k
views
Openssl - SHA256 (Base-64) using command line
I have to add hash total of a string to a file. Hash total is SHA-256 (Base-64).
String stream would be as below:
Transaction Type|External System Reference Number|Original External System Reference|...
4
votes
0
answers
2k
views
How can I play media/video files via UPnP/DLNA from command line (DMC/DMP)
I am looking for something like gupnp-av-cp (or any other UPnP capable program/player/conntroller), but from the command line.
I would like to pass it a renderer and the URI of the file/resource.
It ...
4
votes
0
answers
2k
views
How do I turn off the display (DPMS) without X?
I've been trying to switch off the built-in screen of a device I've got, but I can't seem to completely control it without X running.
If I run a GUI (I've tried Kubuntu 12.10) and issue the command ...
4
votes
1
answer
895
views
Terminal TTY Ctrl-Alt-F# not working, only prints junk characters
I'm not sure what I pressed to mess this up. I was on tty1, but it doesn't look like I'm on tty1 anymore. When I press any key on the terminal it just prints weird letters. Pressing Ctrl-Alt-F1 ...
3
votes
0
answers
383
views
WSL zsh Shell Prompt Not Updating
Im running Ubuntu 22.04 under WSL and would like to change my prompt info and look from the default.
I did the following
sudo apt install zsh
chsh -s /bin/zsh
I updated the .zshrc file to be PROMPT='%...
3
votes
0
answers
345
views
Can't open terminal in ubuntu
I have installed ubuntu on the virtual box, and I can't open the terminal in my virtual box. I have tried enabling the terminal using the prompt that is opened by ctrl+alt+f4 keys, but I couldn't do ...
3
votes
0
answers
627
views
How to automatically send screenshot to someone on Telegram
I want to send screenshots automatically to someone as soon as I capture my screen. I can use telegram-cli to send the screenshot but I can't figure out that how can I chose the photo on my clipboard ...
3
votes
0
answers
500
views
Change the highlight color of text pasted into terminal
In the recent version of gnome terminal, when text is pasted into the terminal, it is initially highlighted in white.
I would like to change this paste-highlight color to something else (preferably ...
3
votes
0
answers
91
views
Problem with xfce terminal during dialogs in command line installs
I am using terminal in Ubuntu Studio 20.4.2. During installs with apt in the terminal, if there is a dialog that requires a keyboard or mouse response, the response is not recognized and the apt ...
3
votes
2
answers
830
views
Is there a CLI IRC client with a GUI?
Some CLI apps, like htop, do a great job at providing you with a UI for configuring it. This way you can do some customizations just using the keyboard and/or mouse (!), without spending spending a ...
3
votes
0
answers
3k
views
color scheme for Ubuntu terminal from WSL-2 install
I'm using WSL-2 under Windows 10 which has installed Ubuntu 20.04. The color scheme of the Ubuntu terminal has dark blue on a black background, which is unreadable. How do I change that?
3
votes
1
answer
7k
views
How to run multiple commands in multiple terminals using single shell script command
I have tried to write a shell script to run multiple commands in multiple terminals, but I am not able to run the commands. I can only open multiple terminals.
This is written in a shell script file ...
3
votes
0
answers
241
views
why is if statement working on terminal but not as script
I am trying to make a script that checks if a service is running (sickchill in this case) and if not start it with systemctl.
My code is working as intended if I execute it from the terminal, but when ...
3
votes
1
answer
523
views
Katepart - "Wrap dynamic at static word wrap marker" as a toolbar button or Kate command?
I heavily use Katepart-based editors, like Kate and Kile, for work and personal use. Katepart offers two different word wrap modes, static and dynamic: in static word wrap mode, a new line is created ...
3
votes
0
answers
541
views
Where do I find the full list of shortcuts used in Linux Virtual Console (Terminal)?
I know only ctrl+alt+Fn to switch between consoles and scroll the screen by shift+Page Up/Page Down.
Is there a full list of shortcuts specifically for the virtual console?
3
votes
0
answers
270
views
Not able to run portable chrome .desktop opening in text editor
I installed portable chrome using https://github.com/shivamgly/Google-Chrome-Portable-maker-for-linux this link I am not able to run this chrome. Chrome.desktop file opens in text-editor.
Screenshot ...
3
votes
1
answer
3k
views
Change Gnome display resolution from commandline
I hae a Ubuntu 18.04 box with gnome 3.28.2. I have a CRT screen attached that has gone bad and does not want to display the set resolution of 1600x1200 anymore. It will do lower resolutions (checked ...
3
votes
0
answers
67
views
Can I style the Alt+F2 prompt?
I'm using Ubuntu 19.10. My main issue with it is that the Alt+F2 prompt darkens the entire screen underneath it while open and I find the resulting blink overstimulating. I looked on Google to no ...
3
votes
0
answers
635
views
How to change the default terminal for "open in terminal"?
I have installed the guake in my ubuntu 18.04 . According to this question How change default terminal in “open in terminal” in GIO, I followed it and set
gsettings set org.gnome.desktop.default-...
3
votes
0
answers
169
views
How do I interpret `flatpak install` output?
I'm simply trying to install Spotify with flatpak install spotify. Here's the output:
Looking for matches…
Found similar ref(s) for ‘spotify’ in remote ‘flathub’ (system).
Use this remote? [Y/n]: y
...
3
votes
1
answer
216
views
How to return to the decryption request
I encrypted the hard disk with LUKS.
When I boot the PC, the screen says: please unlock disk sda5_crypt.
Is it possible to return to this screen from the command-line? If the PC can return from the ...
3
votes
0
answers
1k
views
gnome-control-center sharing over SSH: core dumped
I am logged onto a remote Ubuntu computer over SSH (using the -Y option. I am trying to enable screen sharing remotely, so I typed the command:
$ gnome-control-center sharing
And I got this error ...
3
votes
1
answer
2k
views
19.10: Unmet dependencies block install SQL Server Command Line Tools
I ma trying to install SQL Server Developer Edition in Ubuntu 19.10.
I have followed the article (https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-ver15) ...
3
votes
0
answers
1k
views
Tab auto-completetion not working when executing python scripts
Tab auto-completion/double pressing tab does not show files or autocomplete file, only showing folders while executing python scripts with argparse arguments.
Expected behaviour:
python ~/scripts/...
3
votes
1
answer
2k
views
How to use the cmd "gnome-software --install=ID"?
I am trying to use the command "gnome-software --install=ID" to install a gnome shell extension called "blyr". However, I don't seem to be able to get the cmd to do what I want. How do I use this cmd ...
3
votes
1
answer
108
views
How to reboot system if specific directory modified as a systemd service
I'm trying to create systemd service to reboot device. When hello.txt file content or file modified, system needs to reboot. I try to achieve but I don't know rebooting indefinitely. Here is my ...
3
votes
0
answers
1k
views
watch --beep doesn't work
I read watch command's manual page, found -b or --beep:
-b, --beep
Beep if command has a non-zero exit.
So I did:
$ watch --beep ls /root
Using a non-root account and it doesn't make a sound like a ...
3
votes
0
answers
148
views
How do I get back to normal log in after hibernating in Ubuntu 18.04?
After using the command sudo systemctl hibernate to hibernate my laptop running Ubuntu 18.04, the login screen changes design and some applications I installed went missing.
I restarted the computer ...
3
votes
1
answer
308
views
How to debug nullmodem connection between Norton commander in DOS and NC on DOSBox on Ubuntu?
I am trying to make Norton Commander 5.5 on an OLD 80286 DOS 6.22 box (Tulip LT286. I am actually still using this 30+ years old laptop almost daily to communicate with satellites in earth orbit via ...
3
votes
0
answers
3k
views
winetricks quartz regsvr32 status 5
So I`m trying to install directx 9 for my game, but when i try to install it it gives me this:
~$ sh winetricks directx9
------------------------------------------------------
You are using a 64-bit ...
3
votes
0
answers
3k
views
apt: relocation error: symbol not defined in file libapt-pkg.so.5.0 with link time reference
My apt will not run any command, e.g. sudo apt-get ____. The error message I am getting is:
relocation error: /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0:
symbol ...
3
votes
0
answers
2k
views
Cannot connect to wifi via command line
I am simply trying to connect to my WPA2 network using the command line. I have tried what seems like everything for the past few hours, but no success.
Attempt #1
So I have tried to edit the /etc/...
3
votes
0
answers
36
views
How do I set mouse-speed to ridiculous levels of slow for digital painting
Back when Ubuntu was using unity instead of gnome there was a command I used all the time to slow down the mouse to just plain silly levels.
Mouse-speed -s 10
Setting it to 50 was about normal and ...
3
votes
1
answer
726
views
Terminal emulator with keyboard scroll-copy-paste
There are many terminal emulators for Linux with different nice features, but I'm looking for a KEYBOARD scroll-back, copy and paste. Is there a terminal emulator capable of doing that?
Because ...
3
votes
1
answer
2k
views
How to install adblock software via terminal
Is it possible to install AdBlock Plus, uBlock or something equivalent via terminal?
I am using Ubuntu 18.10 and want to install adblocking extension for Firefox 64. I could easily do that by ...
3
votes
0
answers
7k
views
How to fix Ubuntu 18.04LTS freezes?
I've installed latest Ubuntu 18.04.1 LTS about a week ago.
All the soft was installed via system menu or Jetbrains repo.
In 2 days appeared freezes - only mouse moves, irresponsive to keyboard, timer ...