Skip to main content

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,310 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
17 votes
4 answers
13k views

text highlighting (select to copy) stopped working in the terminal

I have a weird effect in one workstation: suddenly, the system does not allow me to copy text from a terminal to paste it somewhere else by simpling selecting it. I can still paste into the terminal ...
Arabarra's user avatar
  • 171
11 votes
1 answer
1k views

How do I enable scrolling with a mouse in a TTY in Ubuntu?

When I use gpm with a mouse in a TTY (ctrl+alt+f1), it allows mouse movements with a blinking cursor and such but scrolling with my mouse wheel doesn't cause any visible changes. How do I enable ...
LJ Germain's user avatar
8 votes
1 answer
488 views

How to get Alt+Tab on active monitor (Ubuntu 18.04 LTS)

Running Ubuntu 18.04 LTS. The tab switcher Alt+Tab only appears on the primary monitor. I would like it to appear on the monitor with the active window, similar to how it functioned in Unity.
Brigadeiro's user avatar
8 votes
0 answers
31k views

netsh command not found - what package do I need to install?

I get this error when I run netsh http show iplisten: netsh: command not found What package I should install?
ParisaN's user avatar
  • 237
8 votes
1 answer
3k views

How to get keccak-256sum command in ubuntu

I am not sure whether this is the right platform to ask but let's give it a shot. How to get keccak-256sum command in linux terminal? The Ubuntu already has commands like md5sum,sha256sum,sha384sum,...
Prashant Prabhakar Singh's user avatar
8 votes
0 answers
2k views

How to access Google drive using Gnome Online Accounts (GOA) in command line for Ubuntu 16.04?

Before anything, this is not (as far as I could search) a duplicate. I enabled GOA for my Google account and enabled Files, so my account showed up in Nautilus under my computer just fine. To my ...
Adriano_epifas's user avatar
7 votes
0 answers
5k views

System freezes during Bash auto-completion with Tab or Ctrl+R

It started about a week ago, don't know why. Now, when I type something like cd somedir and click Tab, my system completely freezes for about 10 seconds. I can move the cursor but can't switch between ...
Spaceman's user avatar
  • 171
6 votes
0 answers
3k views

Tunneling with tun2socks to bypass Iran's internet censorship

I am a beginner, I was trying to tunnel between my computer to VPS1 (which has restricted internet due to Iran government policy) and VPS2 (From an Europan provider). Just rented an Ubuntu 20 VPS ...
Takeshi-YOL's user avatar
6 votes
0 answers
1k views

Interacting with gnome calendar via the cli -- adding and reading events

Is there a programmatic API to take actions in gnome calendar which you can do via the GUI? Some example actions will be Create an event Fetch a list of events for today I see that there is a gnome-...
Peeyush Kushwaha's user avatar
6 votes
1 answer
549 views

How to open the little wifi dialog from command line?

My goal I want to set a shortcut to open the Select Network dialog that opens from the top left system menu. The graphic way to open it is to click on the top left corner, then on your network, then ...
Luuudo's user avatar
  • 61
6 votes
0 answers
1k views

Why did an rm command executed from a pwd NOT / remove directories from it?

OK, so I've been doing different levels of sysadmin for almost a decade and yet I fell victim to an age old mistake; though I do not understand why it happened. I was in my server sorting through ...
user809476's user avatar
6 votes
1 answer
2k views

Bangla Font issue in Terminal

I have a program that outputs Bangla in the terminal. But unfortunately, the output is not displayed properly by gnome-terminal in Ubuntu 16.04 LTS. The output should look like this: আপনাদের দোকা...
Asiful Nobel's user avatar
5 votes
0 answers
2k views

Preserve colors in console of a Bash script output while logging

I would like to preserve colors, in console, of a Bash script output, while logging and echo it to console. When I run a script with the following code, I lose colors in console. LOG_FILE="Merge....
Jags's user avatar
  • 2,186
5 votes
0 answers
791 views

Delayed jobs in crontab

My OS is Ubuntu 18.04.3 LTS. I have 2 crontab jobs scheduled to run every morning at 4:00 a.m. and 4.05 a.m. 00 4 * * * sh /home/developer/script/batch_load1.sh >> /home/developer/script/log/...
Kevin Lee's user avatar
  • 151
5 votes
1 answer
589 views

How can we copy and paste in GNOME Terminal in the same way as in PuTTY, i.e. select to copy, right click to paste?

I am using GNOME Ubuntu Desktop Environment. Right now I have to select the text and then right click on it and then have to select copy option, and the same is the case for paste as well. Using ...
TheLittleNaruto's user avatar
5 votes
1 answer
763 views

Openvpn connection problem using network manager

I have problem with connecting to vpn my company gave me those files along with a password I tried to import them this way 1- I go to Network Setting 2- then I press the plus button to add new ...
Neji Soltani's user avatar
5 votes
0 answers
2k views

gio mount - how to use Gnome keyring for password?

I am using Nextcloud as an "Online Service" in Ubuntu 18.04. After logging in and starting a Nautilus (Files) window I can mount the service without (re)entering my password by clicking on it in the ...
artfulrobot's user avatar
  • 8,583
5 votes
0 answers
1k views

How do I determine my screen's current color temperature in KDE Plasma environment?

OS: Kubuntu 18.04 I know how to change my screen color temperature but I want a method to determine the current screen color temperature, preferably via the command-line so that I may potentially use ...
DK Bose's user avatar
  • 43.1k
5 votes
0 answers
6k views

How can I see Chinese characters in the Windows Subsystem for Linux terminal?

I installed Ubuntu 18.04 via Windows Subsystem for Linux using these official instructions. I'm trying to get the Ubuntu terminal to show Chinese characters, like this: ronald@LAPTOP-FLRIMKMQ:~$ 你你 ...
Ronald Ching's user avatar
5 votes
1 answer
790 views

Terminal will not open

I have a google cloud instance running Ubuntu 16.04. I am accessing the GUI through VNC viewer Followed this question : How to make VNC Server work with ubuntu-desktop without xfce to set up the gui ...
m0bi5's user avatar
  • 151
5 votes
1 answer
3k views

How can I run dotnet on ubuntu without using sudo?

I've been trying to update the permissions so that I can run a command (specificially dotnet restore). I'm not sure if this issue is specific to running dotnet, or if it is more generic. I can run ...
fuzzi's user avatar
  • 191
5 votes
2 answers
926 views

ubuntu-server installation: is there a way to change the font size in BusyBox?

when installing ubuntu-server on a new laptop the default font of the installer and the BusyBox console is extremely small. is there a way to make it bigger while the system is running from a boot ....
hiro protagonist's user avatar
5 votes
0 answers
741 views

Ubuntu 16.04 slow ssh character feedback

I am seeing veeeeeerry slow feedback on remote ssh terminals to a new install of Ubuntu 16.04. E.g., after typing a character it may take 20-30 seconds before it is displayed in the terminal. ...
Robert's user avatar
  • 51
5 votes
0 answers
2k views

How to remove all comments/annotations in multiple pdfs from command line

Are there any open source solution to remove all the comments/annotations from PDF files using command line? I searched around, and it seems that there are solutions with commercial software, e.g. , ...
tinlyx's user avatar
  • 3,240
5 votes
1 answer
5k views

Cursor positioning using mouse in bash possible?

In Vim I can actually position the cursor in insert-mode using the mouse. So I assume this should (technically) also be enable-able for the bash. Is it possible? This would be quite useful at times ...
Raffael's user avatar
  • 3,781
5 votes
0 answers
4k views

Can cd into folder but I can't see it with ls or ls -a?

I've a shared partition between Windows and Ubuntu, achieved through VMWare's shared folders, and when I moved a folder into this shared folder Ubuntu couldn't see it. Ubuntu still can't see it, but ...
calben's user avatar
  • 173
5 votes
2 answers
11k views

"No such file or directory" error when downloading with 'youtube-dl'

Every time I try to download YouTube videos using youtube-dl it gives me this: ERROR: unable to open for writing: [Errno 2] No such file or directory:<br> 'Filename.mp4.part' How can I fix ...
usr12390's user avatar
4 votes
0 answers
185 views

Writing a script for automatic input method switching

I use Ubuntu 22.04 LTS and want to write a bash script for Vim (it's just: output 1 if the current language is English and 2 if Russian, that simple). I don't ask you to write it for me, I just need ...
RobberFokZ's user avatar
4 votes
1 answer
5k views

How to start a X11 session

I get this message when starting SimpleScreenRecorder after upgrade to .04 You are using a non-X11 window system (e.g. Wayland) which is currently not supported by SimpleScreenRecorder. Several ...
user220615's user avatar
4 votes
2 answers
3k views

UBUNTU 22.04 LTS - Changing brightness with xrandr doesn't work

In the CLI, xrandr --output MONITOR_NAME --brightness 0.7 seemingly "works" because no feedback is shown. After using xrandr --verbose | grep Brightness, Brightness: 0.70 is shown as output ...
user avatar
4 votes
0 answers
480 views

Enable multi-line paste for conda python shell on 18.04

I am running ubuntu 18.04 and have started using conda 4.9.2 to set up python environments. As this is a remote machine, I often copy and paste short multi-line code snippets for development purposes. ...
djk's user avatar
  • 41
4 votes
1 answer
2k views

sudo select auth method (password vs fingerprint)

In Ubuntu 20.04, after activating and enrolling my fingerprint in Applications menu ->Users and after enabling the fingerprint in terminal using sudo pam-auth-update and checking the fingerprint ...
Marinescu Sorin's user avatar
4 votes
1 answer
2k views

Unable to use ttyUSB0 as console

I have a server (Ubuntu 20.04.1 Kernel 5.4.0-42-generic) that is meant to be headless and able to be remote rebooted (with encrypted root) I have a USB to Serial adapter in the machine and was wanting ...
Jason's user avatar
  • 85
4 votes
0 answers
2k views

Can't get unicode characters to display on Ubuntu Server 20.04.1

I'm running Ubuntu Server 20.04.1 (no GUI) and want to be able to see unicode characters in the terminal. Just to be clear: I'm not SSHed into it, the terminal I'm using is the one directly on the ...
M H's user avatar
  • 41
4 votes
0 answers
980 views

After updating to Ubuntu 20.04 from 18.04 I can't detect mobile phone through USB cable?

I've tried everything and read most of the articles available but when I type mtp-connect mtp-folders in terminal it lists all the folders in the phone so the cable and slots are working properly but ...
Neeraj's user avatar
  • 41
4 votes
1 answer
152 views

A strange path is being printed for an entry when netstat command is used?

When I used the netstat -a command to check for active connections, I encountered this entry under active unix domains sockets(servers and established) Proto Refcnt Flags Type State ...
ddehhiorrty's user avatar
4 votes
0 answers
2k views

How to install extension in firefox automatically?

Hi I have the need to be able to install an extension that I made myself for Firefox in ubuntu but without a graphic terminal so I need to be able to install the extension without the need for user ...
Abraham.P's user avatar
  • 143
4 votes
1 answer
546 views

Is there a system wide colour scheme you can set by command or conf file for all TTY's and terminal commands?

I was looking into the possibilities of changing the foreground and background colours in command-only-mode, which I understand uses tty1 I tried changing the colours in my .bashrc file, which are ...
user avatar
4 votes
0 answers
2k views

Remove last character of a text file

How may I remove the last character of a text file in the shell without an unwanted final nextline? Can you believe I tried more than 3 hours... Actually, only this works : printf '%s\n' '$' 's/.$//...
Quentin's user avatar
  • 67
4 votes
0 answers
765 views

Disable touchscreen while using pen

I just installed Ubuntu on my Lenovo L390. Works well. Theres one problem tho: When using Krita, I use the built in pen to draw. Sadly, the touchscreen is still active, so a whole bunch of lines keep ...
keanu_reeves's user avatar
4 votes
0 answers
3k views

Cannot find Trash folder in Ubuntu 18.04

I have already asked here but nobody was able to respond or provide any answers. https://unix.stackexchange.com/questions/506687/cannot-find-trash-folder-ubuntu-18-04 I am running a preinstalled ...
Samuel J's user avatar
4 votes
0 answers
307 views

How to compose a mixed (audio + data) CD image (ISO) from the command line

I have a set of audio files (WAV format) and a collection of data files and I want to create a mixed audio+data CD image (ISO) with (preferably only) command line tools. I don't actually want to burn ...
Luke's user avatar
  • 735
4 votes
1 answer
294 views

How do I set PYTHONASYNCIODEBUG value in pipenv python?

I am running python 3.6 in a pipenv shell. I want to set the value of this python environment variable PYTHONASYNCIODEBUG to 1 without affecting my user environment variables that are outside of the ...
Sun Bear's user avatar
  • 2,422
4 votes
1 answer
3k views

Unable to open terminal & File Manager in Ubuntu 18.04

Too descriptive question, please bear with me. Thank you I'm using Dell Atitude E7440, which has ubuntu 18.04. The alt+ctl+t is not opening any terminal & clicking on "File Manager"(keeps on ...
DazzlerJay's user avatar
4 votes
1 answer
2k views

Deleted folder comes back

I am on ubuntu 18.04. I have a folder (self-created project for website), that is locked. Only root has access to create and delete. I did following on folder: sudo chmod 777 on folder to release ...
user avatar
4 votes
0 answers
2k views

xbindkeys and xdotool does not work for Enter or Return

I try to bind some keys to other keys via xdotool commands in .xbindkeysrc. Everything works fine but I cannot simulate Enter by any key. Neither of the following commands work. "xdotool key KP_Enter"...
Googlebot's user avatar
  • 1,807
4 votes
2 answers
378 views

Right-clicking and selecting Terminal in Desktop doesn't set path of the terminal to the Desktop

Why doesn't right-clicking and selecting "Open Terminal" in Desktop set the path of the terminal to the Desktop? On the other hand doing the same thing from other directories sets the path as expected....
Atinesh's user avatar
  • 328
4 votes
1 answer
309 views

echo command variations

Worked for years but now at least \begin and \end are handled especially. The change in echo behaviour must be new. Even if echo is not portable and the dash echo doesnt support -e / -E options ...
Horst Fiedler's user avatar
4 votes
1 answer
4k views

Command line connect to L2TP Windows Server VPN

I have been searching for a couple of days not much luck as and everything i come across relies on using the Network Manager UI. Could someone provide me with a noobish tutorial on how I would ...
Martin Barker's user avatar
4 votes
1 answer
629 views

what to do when mysql command tool does not allow to enter Cyrillic alphabet?

After upgrading Ubuntu from 16.10 to 17.10 I have a problem. Now the mysql command-line tool does not allow to enter Cyrillic alphabet. When you start the mysql command tool, you can write SQL ...
vstas78's user avatar
  • 61

1
2 3 4 5
87