Questions tagged [command-line]

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

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
297 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 ...
4
votes
0answers
181 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
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
482 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
644 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
0answers
411 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
0answers
6k 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 ...
3
votes
0answers
31 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
0answers
64 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
180 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
104 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
0answers
207 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
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
94 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
0answers
82 views

Scroll the screen behind terminal

my terminal screen is translucent and suppose if i open chrome and then if i open terminal i can see what's written on chrome page while using the terminal window. This really helps me if i want to ...
3
votes
0answers
482 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 ...
3
votes
0answers
1k views

emulator-5554 offline

How can I get the emulator back online? I ran push emulator-5554 /file path/ /sdcard/ while the emulator was online, then did adb devices and the emulator was offline and did not receive the file ...
3
votes
0answers
476 views

Change Color of Gnome Terminal Open Tab bar in 16.04

Aloha - I followed the instructions of the accepted answer here However, it doesn't work for me on 16.04. Not sure if its that creating the gtk.css file method doesn't work on 16.04 or if I am just ...
3
votes
0answers
2k views

Error parsing gtk-icon-sizes string: ' '

Sorry I am pretty new to Linux machine, Ubuntu and Command line. Here is what I did: I tried to install PhpStorm 2016.3.2 on Linux machine (Ubuntu) by downloading the .gz file from JetBrains site. I ...
3
votes
0answers
2k views

ssmtp: Authorization failed for corporate mailserver

Our corporate has its own mailserver and I want to send mail to it from command line. I've install smtp and configure it. Configuration in /etc/ssmtp/ssmtp.conf root=username@symantric.com mailhub=...
3
votes
0answers
68 views

After upgrade, Ubuntu boots to text console only

I updated my Ubuntu version to 16.04.01. I restarted the PC but it goes to the text console. It asks for username + password but it does not recognize either of them. I tried Ctrl + Alt + F7 but it ...
3
votes
0answers
279 views

inserting few copies of the same page into PDF

I want to insert X blank pages into PDF document. I can do it with pdftk : pdftk A=book.pdf B=page.pdf cat A1-end B output output.pdf When I want insert more than one page, I can do something like ...
3
votes
0answers
273 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 ...
3
votes
0answers
2k 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 ...
3
votes
0answers
54 views

replacement for `mk-table-checksum --scheme`

After upgrading to LTS 16.04.1, the mk-table-checksum --scheme generates errors, so tried to find a newer version, but can only find pt-table-checksum, and it doesn't have a --scheme-option. Also ...
3
votes
0answers
743 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-...
3
votes
0answers
245 views

packages installed via Software Center do not show up in menu without reboot

After installing Opera using the Software Center, its icon does not show up in the start menu. But after I reboot, it does show up in the start menu. It's really annoying that I have to keep ...
3
votes
0answers
322 views

Bash Script Works On Command Line but not at startup

Let me ask this another way: There are at least (2) ways to have a bash script called automatically when a user connects to OpenVPN: Placing the script in the /etc/network/if-up.d folder Renaming ...
3
votes
0answers
317 views

Guake won't display UTF-8 after forced reboot

That's basically it. Sometimes after having to force a reboot Guake won't show any UTF-8 characters. This is especially noticeable since I'm using powerline with a patched font. output from dpkg -l | ...
3
votes
0answers
1k 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 ...
3
votes
0answers
481 views

Terminator not opening and giving following error

Recently, I have installed zsh shell. After that I tried to open terminator software then it was crashing and giving following error: Also, after installation of zsh, I have set the default login ...
3
votes
0answers
207 views

Software GUI does not run locally but works if using SSH with X forwarding?

The software I am trying to use is QualNet EDU 7.3. The GUI executable is located at ~/Scalable/qualnet-edu/7.3/bin/QualNetGUI. My Ubuntu is 14.04 LTS, using Linux kernel 3.13.0-44-generic. If I ...
3
votes
0answers
744 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. , ...
3
votes
0answers
234 views

Ctrl+L on terminal doesn't work anymore

Usually on the command line you could write Ctrl+L and this would clean the command line, but now it doesn't. The command does nothing at all. How can I restore it to the way it was? I'm using Ubuntu ...
3
votes
0answers
7k 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|...
3
votes
0answers
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 ...
3
votes
0answers
1k 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 ...
2
votes
0answers
35 views

Redirect output of a startup script to terminal

I have a shell script init.sh that invokes a javascript script app.js like this: #!/bin/sh node app.js In the js script there are some console.log that i would like to see on the terminal. If I ...
2
votes
0answers
35 views

how to customize ubuntu terminal shortcut of deleting a word backward and forward

this may seem as a duplicate question, but I couldn't find a solution in others, I am using Ubuntu 18.04 for now, and the terminal shortcut of deleting a word backward and forward is Alt+← and Alt+d, ...
2
votes
0answers
25 views

Why are some busybox commands in interactive mode not available in a chrooted environment?

I try to setup a most minimal chrooted environment using busybox. I created a directory 'testRoot' and copied 'busybox' into it. from this directory I execute: sudo chroot ./ /busybox sh now I have ...
2
votes
0answers
29 views

Crop image by horizontal lines, but they are not always straight, using command line

I have a lot of images looking like this Is there a way to follow the horizontal lines and make a new image from to top of the line to the bottom of the horizontal line and between the end of the ...
2
votes
0answers
29 views

Mouse has the reverse orientation from screen

So, my laptop always begins upside down, even If I locked it before I shut it down. This wouldn't be much of a problem if the mouse didn't have the opposite orientation of the screen. If the screen is ...
2
votes
0answers
74 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 ...
2
votes
0answers
23 views

Sudden swedish keyboard problem

I have a problem with my keyboard layout in any terminal. Swedish keys/characters are suddenly not working anymore in any terminal. Works fine in any gui application but not in any terminal. But all ...
2
votes
0answers
39 views

Ubuntu 18.04 opens two terminals. How to fix?

I am using ubuntu 18.04 version. It was working fine but from last two days when I am opening the terminal through side bar by right click the mouse it opens up two terminal in place of one. How to ...
2
votes
0answers
65 views

What method does Gnome shell use to gracefully close all windows belonging to an application?

As shown in the screenshot (showing a modified gnome favorite bar, but still with stock functionality), when I right click an application with multiple windows open on the gnome favorites bar, I get ...