Questions tagged [command-line]

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

2,706 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
14
votes
0answers
3k 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 ...
9
votes
0answers
303 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 ...
7
votes
1answer
403 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 ...
7
votes
1answer
1k views

Wayland equivalent to “xset led”

I have been using Ubuntu since 16.04, with the CM Storm keyboard. When using this keyboard on Windows, pressing the Scroll Lock key enables/disables the backlight. Previously on Ubuntu, the commands ...
5
votes
1answer
650 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 ...
5
votes
2answers
373 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
645 views

Terminal emulator that has “code folding”

Sometimes I regret running ls in a directory containing a lot of files because it produces too many lines in my terminal. So I'd like to be able to collapse & expand the output of each command ...
5
votes
1answer
2k 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
2answers
3k 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
105 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
108 views

How can I browse view missing manpages from the command line?

http://manpages.ubuntu.com is a great resource for viewing manpages not installed in the system. However, it uses some weird programming to redirect short URLs like http://manpages.ubuntu.com/ls.1 to ...
4
votes
1answer
49 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
68 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
205 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
859 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
161 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
2k 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 ...
4
votes
0answers
515 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
674 views

Unable to create custom URI scheme on Ubuntu

I created custom URI scheme handler on RedHat Linux and it was working as expected. When user is redirected to the custom URI for example: myapp://abcd the browser opens application launcher popup ...
4
votes
0answers
1k 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 ...
4
votes
3answers
4k views

Pasting text into terminal editors always pastes into a single line on Ubuntu for Windows (10)

I am trying to paste from the windows system clipboard into a terminal text editor like vim (or its clipboard and xterm-clipboard allowing variants like vim-gtx), nano or emacs to no avail. I am ...
4
votes
0answers
414 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
1answer
1k 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
48 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
1answer
4k 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 ...
4
votes
3answers
28k views

How to fix dangling symlink error

I am trying to install transmission on my ubuntu 14.04 server and I am unsure whether to skip this part or not. I am trying to give permissions to a folder with sudo chmod -R 770 /etc/transmission-...
4
votes
2answers
930 views

Ubuntu for phones - is there a terminal similar to the one known from PC's?

I am thinking about install Ubuntu on a phone. I spend a lot of time in terminal while working on my PC. There are much things I do using bash scripts, for example. Then, is there a terminal on ...
4
votes
2answers
4k 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
1answer
723 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
0answers
32 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
1answer
58 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
1answer
506 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 ...
3
votes
0answers
68 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 ...
3
votes
0answers
17 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
0answers
183 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.
3
votes
0answers
106 views

Get ok message when installing deb with apt in terminal (from context menu or click)

I find apt in terminal as the best way to install a program from a deb package. As I prefer it to other gui tools, I want that in the context menu for deb files or as a launcher among applications in ...
3
votes
0answers
2k views

How to install utorrent in Ubuntu 18.04?

I have tried the installation with basic running the file, then with the instructions given by the post command line - How to install utorrent v3.3 on 14.04 But after all of this, on running the ...
3
votes
2answers
87 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....
3
votes
1answer
89 views

What do I do when APT (or another process in a terminal) seemingly stalls on an empty line?

As an Ubuntu newbie, I'm always lost with what to do when this happens... The progress appears to be stalled, but there's nothing on the current line to show me what might be happening that could ...
3
votes
1answer
112 views

Install software that uses a different shell

I would like to install cryoSPARC, and looking through the readme it looks like this program requires that the user use bash as their default shell. At the moment I'm using tcsh, and have built up a ....
3
votes
1answer
731 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 ...
3
votes
0answers
208 views

How to stop Ubuntu in Windows 10 from outputting files with #000D added to the extension?

How do you stop Ubuntu in Windows 10 outputting a .txt#000D file instead of a .txt file I need to be outputted? Im using this shell script: #!/bin/sh sudo chmod a+rwx /home/User/FYP_Pastec/...
3
votes
1answer
833 views

Difference between terminal and terminator

'who am i' when used on terminal displays nothing but not terminator please explain screenshots uploaded
3
votes
1answer
61 views

searching for “created_at”: followed in the next line by “retweeted”: in lots of json files for a specific range

I have a large amount of json files and previously I was told to use the following line to search if a tweet is created at a specific time range in a date: grep -wirnEzc '},.*created_at":\s"Wed Oct ...
3
votes
0answers
136 views

I don't have a terminal and I can't acsses the ubuntu store aquaris bq m10 tablet

I got the BQ Aquaris M10 but when I go to the Ubuntu store it won't load, even though I'm connected to the internet. I don't even have a terminal so I can't install anything. Is there a way to fix ...
3
votes
0answers
95 views

What is the difference between different ways to set the default application in Ubuntu?

Let's say I want to change the default GUI and CLI text editor application for all possible 'text' file types. What's the difference between update-alternatives way and /usr/share/applications/...
3
votes
1answer
343 views

installing ubuntu-restricted-addons from script

I have a post-install script I use to install a few packages after a vanilla Ubuntu 16.04 LTS installation. One of these packages is ubuntu-restricted-addons. I wold like to be able to install this ...