Questions tagged [command-line]

Questions about using the command-line interface (CLI).

3,713 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
21
votes
1answer
4k views

Get binary delta-encoded recursive diff of two directories as single patch file in CLI (and online use)

Essentially, I am looking for a GNU/Linux tool, that could recursively iterate through two directories, find file changes/additions/deletions; and for all changed files, output a diff. This can ...
14
votes
1answer
499 views

gnome-terminal hides ending characters of the current path's first row

I'm using Ubuntu-18.04.2's original ~/.bashrc file and I have done no changes in any original files. Do Ubuntu 18.04.2 users experience the problem I'm going to describe to you down below? Let me know,...
10
votes
2answers
6k 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 ...
8
votes
1answer
335 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.
7
votes
0answers
184 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 ...
7
votes
0answers
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 ...
6
votes
2answers
2k views

Terminal emulator with a “restore session” feature like Mac Terminal

The Mac terminal is able to restore a previous session. I just had a MacBook reboot, and when the terminal opened, all my previous commands were there in the display and all the tabs, as if it was ...
6
votes
1answer
3k views

How to enable early KMS on Ubuntu?

I have set /etc/default/grub to: GRUB_HIDDEN_TIMEOUT=0 GRUB_TIMEOUT=0 GRUB_HIDDEN_TIMEOUT_QUIET=true GRUB_CMDLINE_LINUX_DEFAULT="" GRUB_CMDLINE_LINUX="" so that I get the full console text output ...
6
votes
1answer
9k views

hcitool scan does not find my bluetooth device

I have a small device that has a bluetooth chip. I can see it through the GUI System Settings > Bluetooth, when adding and discovering a new bluetooth device nearby, but every time I try this command ...
6
votes
1answer
4k 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 ...
5
votes
0answers
518 views

How to prevent terminal title changing after ssh

I use one of the many solutions to set the terminal title: Function in .bashrc: function set-title() { if [[ -z "$ORIG" ]]; then ORIG=$PS1 fi TITLE="\[\e]2;$*\a\]" PS1=${ORIG}${TITLE} } ...
5
votes
1answer
299 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 ...
5
votes
1answer
1k views

Manage “Passwords and Keys” from the command line

I am new to Ubuntu and using 18.04. I have setup remmina for RDP and I found that it is storing its passwords in "Passwords and Keys". I would like a way to update those passwords from the command ...
5
votes
0answers
818 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 ...
5
votes
0answers
1k 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,...
5
votes
2answers
578 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 ....
5
votes
1answer
4k 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 ...
5
votes
2answers
19k views

hdiutil: command not found

I want to convert a .iso file to a .img file. So I write: hdiutil convert -format UDRW -o ~/home/antu/target.img ~/home/antu/ubuntu.iso in a terminal window. It shows that: hdiutil: command not ...
5
votes
2answers
4k views

How to control gnome-terminal from Python scrypt?

I am developing an application in PyGtk, and would like to launch a gnome-terminal and output commands to it. My user should then be able to modify the command, or maybe ignore using the up arrow ... ...
5
votes
1answer
8k 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 ...
4
votes
0answers
74 views

find recursive (with ffprobe) all low quality videos (240p and 480p)

How to find recursive (with ffprobe) all low quality videos (example 240p and 480p)? I prefer a command line solution. Before there was iPhone and clones, I recorded already videos. They seem to have ...
4
votes
2answers
305 views

Escape timeout for, or cancel sudo fingerprint authentication and revert to password

In systems where the fingerprint scanner works, you can enable sudo authentication in the terminal, so that you can swipe your finger instead of typing your password when you issue "sudo" in ...
4
votes
0answers
53 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 ...
4
votes
0answers
225 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/...
4
votes
1answer
129 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 ...
4
votes
1answer
3k views

How to run a Iphone backup with idevicebackup2?

I try to do a backup of my Iphone SE iOS12.1.4. My Ubuntu version is Ubuntu 18.04.2 LTS. I want to use the idevicebackup tool but I think I do something wrong because nothing happens..... this is the ...
4
votes
0answers
2k 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 ...
4
votes
1answer
127 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 ...
4
votes
1answer
2k 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 ...
4
votes
0answers
543 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 ...
4
votes
2answers
186 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....
4
votes
1answer
133 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 ...
4
votes
0answers
549 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 ...
4
votes
1answer
2k 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 ...
4
votes
1answer
3k 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 ...
4
votes
1answer
360 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 ...
4
votes
0answers
862 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
0answers
1k views

How to tell xmllint not to change <tag></tag> to <tag/>

I accept that it's standard to convert <tag></tag> to <tag/> but the client wants it in the former layout not the latter. I've looked at various options for xmllint and can't figure ...
4
votes
0answers
521 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. ...
4
votes
3answers
7k views

How to keep Lxterminal open after running .desktop shortcut

I made a .desktop file to compile and execute a c++ file but the terminal (lxterminal - lubuntu) is not holding after running the file. Although I did mark "Keep terminal window open after command ...
4
votes
0answers
3k 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
0answers
1k 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
1answer
3k 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
1answer
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
0answers
7k 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
1answer
69 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
0answers
1k 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. , ...
4
votes
0answers
5k 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
0answers
8k 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
0answers
3k 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 ...

1
2 3 4 5
75