Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [command-line]

The command-line is the interactive interface to your shell.

4
votes
0answers
84 views

find and symbolic link

I was skimming over the documentation of find to better utilize the command usage. I was reading the part that says GNU find will handle symbolic links in one of two ways; firstly, it can ...
4
votes
0answers
159 views

is it possible to colors the prompt for (reverse-i-search) context menu?

I am using fedora 25 but I think this is a general behavior on unix system. When I ctrl+r in a command-line environment I can start to type in and anything I type will get to be matched backward in ...
4
votes
0answers
434 views

two piped commands, each needs to read password from stdin

Is there a way to sensibly do this: scp user@host:/path/to/file /dev/tty | openssl [options] | less without creating a file, and without having to supply either password directly in arguments? The ...
4
votes
0answers
4k views

Can't login via telnet in ddwrt

I have a Gateworks laguna 2388 router with dd-wrt firmware installed in it. It was working fine till i change "http_passwd" nvram attribute. I wanted to change the web GUI password via telnet. So I ...
3
votes
0answers
397 views

How to pair a Datalogic QuickScan Bluetooth barcode scanner using SPP?

I would like to pair a Bluetooth barcode scanner in "Serial Port Profile Mode" (SPP) using bluetoothctl on Arch Linux. The device is: [bluetooth]# info 00:07:BE:1C:40:C4 Device 00:07:BE:1C:40:C4 (...
3
votes
0answers
61 views

What's the “Unix Way” to propery format tabular output?

I'm writing a set of "Unix Way" tools, where you have a set of small tools that you can pipe into each other (and other tools). The question (more details as to why I care below) is this: Is there a ...
3
votes
0answers
297 views

Bash 4.4 change color vi mode

I am using +~ $ bash --version GNU bash, version 4.4.0(1)-release (x86_64-unknown-linux-gnu) Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://...
3
votes
0answers
254 views

Control characters in a terminal with an active foreground process

Say I have a process running in a terminal in the foreground. While it is active I can type commands, hit return, and those will be executed once the process is done. Now say furthermore I would like ...
3
votes
0answers
473 views

How do I install FreeBSD without bsdinstall?

I would very much like to install and generally configure FreeBSD from the command line without using bsdinstall UI. How do I prevent the live CD from starting into bsdinstall and more important is ...
3
votes
0answers
3k views

How to change block device names, e.g. /dev/sdc to /dev/sdb?

Example of why this might be desired: I connect a block device, which shows up as /dev/sdb, and mount it. Later that device gets removed without being unmounted. The block device is reconnected, but ...
3
votes
0answers
759 views

Program like vnStat that filters for only external (Internet) traffic

I've been using vnStat to monitor the ethernet interface on a Linux computer, but found that it includes all local traffic. I do many file transfers from within the subnet which far exceeds the ...
3
votes
0answers
114 views

Importing hdhomerun channels into MythTV

I am setting up a MythTV backend, to stream Live TV from. I scanned for channels with the hdhomerun_config utility, and got this However, I really don't have a clue how to import it into MythTV.
2
votes
0answers
45 views

How to trim down Amazon Linux OS for more free space?

I use EC2 on Amazon Web Services. The OS of the t2.micro instance is a customized “Amazon Linux” with 1 GiB RAM and 1 vCPU. When accessing this instance via their Cloud9 IDE I find that by default ...
2
votes
0answers
62 views

Why can't I send a post request to my server after SSH logout?

I've created a .jar file which listens on port 8089 and receives post requests. I start it in the background on my linux machine with the following commands: nohup java -jar myServer.jar & [1] ...
2
votes
0answers
98 views

Does this sync call work as expected?

I'm writing a file (let's call it, xyz.bin) to a USB Flash drive... the flash drive mounts under the path: /media/myUsb ... In order to prevent data loss, I'm doing a sync command like this: sync -f ...
2
votes
0answers
125 views

How can I paste a gif from the clipboard with xclip?

I'm trying to copy a gif into my clipboard such that I would be able to paste it into web applications (slack, github, etc.). I have tried the following without any luck: xclip -selection clipboard -...
2
votes
0answers
145 views

Make ssh-keyscan use the .ssh/config settings

Is there a way to use the ~/.ssh/config file with the ssh-keyscan command? My tests are showing that this is not working, but perhaps there is a setting or something that would allow it? Any ...
2
votes
0answers
639 views

Convert .odt to .pdf on the command line - include automatically inserted blank pages

"How to convert libreoffice ODT to PDF in bash" has a nice description of how to convert .odt to .pdf. It does, however, not work if you want to check 'Export automatically inserted blank pages'. ...
2
votes
0answers
835 views

Batch convert ISO/WAV/CUE back into BIN/CUE

I've been looking for a command utility/script that does the opposite of bchunck, but can't seem to find one. What bchunck does is taking a mixed-mode CD image in BIN/CUE format and separate it into ...
2
votes
0answers
85 views

iotop. Don't remove exited processes/threads from the list

When run # iotop -ao, a process/thread disappears from the list if the process exits and the data on it is lost from the list. How to make it stay on the list?
2
votes
0answers
195 views

gnome-terminal bengali unicode chars breaking, not showing perfectly

In gnome-terminal, Bengali Unicode characters are showing, but not as should be shown. Vowels are not joining with consonants, such as "ব + া" should shown as "বা", but it is showing separately. See ...
2
votes
0answers
355 views

Can not find sink inputs when using pacmd

I am trying to redirect the sound produced by laptop to a bluetooth speaker. I know how to redirect the sound of sink inputs to different sinks. However, when I am playing music, sound is coming from ...
2
votes
0answers
860 views

Extract PDF table of contents and bookmark metadata

Is there a command-line tool that can extract only the table of contents and bookmarks as metadata from a pdf? I found the pdftk dump_data tool/command: pdftk in.pdf dump_data output It works but ...
2
votes
0answers
474 views

Find processes causing the fans running

During years, I have found it very difficult to have control over my laptop fan. I tried many times reading various manuals, scripts, settings and nothing worked. So I would like to try it another ...
2
votes
0answers
396 views

Mount a Thunar/Nautilus/Nemo gvfs bookmark using command line

I have some bookmark that use smb/sftp through gvfs, how to mount them using command line? when I click them (mount using mouse click), it shows on /run/media/myuser/BookmarkName So, is there any ...
2
votes
0answers
93 views

How to query (from the command line) high-level desktop-environment information for system characterization

background When asking for help with a software problem, it is usually good to identify not only what versions of that particular code one is running, but also characterize the application's platform....
2
votes
0answers
489 views

how do I make a SIP phone ring with sipsak?

How can I use sipsak to simulate a call so that there's an actual ring, or possibly even a sound is played? thufir@mordor:~$ thufir@mordor:~$ sudo sipsak -v --usrloc-mode --from sip:demo_alice@...
2
votes
0answers
597 views

open several directories from the terminal as tabs inside a single file manager window

I want to open several directories from the terminal as tabs inside a single Nautilus window. If Nautilus cannot be used then I want to know what GUI based file explorer can open directories in ...
2
votes
0answers
264 views

Generating 'ASCII-art' banners with arrows

I recently discovered figlet which generates ASCII-art banners. Joy! ... but, alas, I want a banner with an arrow on it. Now... $ figlet unicode → arrow _ _ //\ ...
2
votes
0answers
264 views

ncurses subversion repository browser

Does anyone have a smooth repository browser they can use on the command line? I'm finding the svn ls command to be a bit tedious. I've considered using a CLI browswer such as elinks to brows the html ...
2
votes
0answers
1k views

GLIBC not loading even after source compilation

While I am installing chef , I am getting below error. [root@centos Tools]# chef-server-ctl reconfigure /opt/opscode/embedded/bin/ruby: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /...
2
votes
0answers
656 views

I can't delete a file from EFI System Partition

I'm trying to delete a file since I installed rEFInd instead or Grub, I want to remove Grub or just remove "grubx64.efi" from my ESP, to make it disappear in the rEFInd boot screen. I can mount my ...
2
votes
0answers
696 views

Drag-and-drop without the drag

I sometimes need to drag-and-drop files onto an application. (Example — but my question here is not installing Chrome userscripts.) One solution is to use Dragbox, which opens a window from which I ...
2
votes
0answers
875 views

Why reading from and writing to framebuffer shows no effect ?

I read a very short description of how to make a Screenshot by making use of the file which represents the framebuffer /dev/fb0. in order to write the screen content: cat /dev/fb0 > file in ...
2
votes
0answers
860 views

Unable to create a configuration directory for [FishShell] Please set the $XDG_CONFIG_HOME variable

I'm getting this error when starting fishshell: melanie:~ melanie$ fish fish: Unable to create a configuration directory for fish. Your personal settings will not be saved. Please set the $...
2
votes
0answers
261 views

How to abort/cancel a running command in initramfs?

When I invoke a long-running command, e.g. du, I don't see a way to abort/cancel it (Strg/Ctrl+c doesn't work), other shells/ttys aren't available. Am I completely doomed after having started a long ...
2
votes
0answers
331 views

Open a program (VLC) and move it to the foreground

On a Mac, specifically, when I use the VLC command line to open a video file, it opens in the background by default. How can I instead move it to the foreground whenever I run the command to open a ...
2
votes
0answers
93 views

Close All Piped Commands if one close

I'm running at least 3 commands (with progs) using pipes. For example program1 bla bla | program2 blabla | program3 bla bla Is possible to close all programX PIDS automatically if at least one exits/...
2
votes
0answers
259 views

How to make grub Command Line Default?

I'd like to make grub by default load it's command line instead of automatically booting from it's list of options generated by update-grub. How can I do this?
2
votes
0answers
834 views

Character encoding issue with my linux install?

I just installed Ubuntu 12.04.4 64 bits, all seemed to be ok, when I started to work on console I noticed: that I couldn't get some accented characters typed in to the console, for example, if I ...
2
votes
0answers
306 views

Command-line file reader (like “less”) that can tell the line where the user stopped reading

[Context] I'm developing a little app, as a hobby to learn ncurses, that catalogs and lists and searches within a set of documents (for now, they are the HOWTOs from TLDP). The most tricky part of ...
2
votes
0answers
1k views

Wired connection from CLI with NetworkManager - “up” in elegant way

Sometimes I need to do some operational work in text mode and I need to setup internet connection from command line (without any networkmanager applet). (Please note: that when I run Window Manager, ...
2
votes
0answers
2k views

Using Image Magick Convert to Change Channel Depth?

I want to change an image depth of bitmap for testing purposes. Right now I am trying to get a 2 bit palette image, and a 4444 Hicolor image. I have a true color bitmap. I used the below command ...
1
vote
0answers
40 views

Setup Automation - Firefox and Addons

I am improving my setup script for new installs and want it to include setting up firefox. One big problem I found is, that it is not possible to install addons via CLI that automatically get updated ...
1
vote
0answers
33 views

Is there a command specifically designed to manipulate file path strings, such as changing foo/bar/baz -> bar/baz?

I'm trying to modify the output of git diff --name-only from a subdirectory of a git project such that it only contains relative paths in the current directory. I know how to do this with sed/grep, ...
1
vote
0answers
73 views

How to get the average CPU usage over the past 10 seconds in bash?

I need a command that would echo the average CPU usage over the past 10 seconds in Ubuntu 18. Each of the following conditions must be met: It must be lightweight with a very small footprint, ...
1
vote
0answers
27 views

How to programmatically change settings of xfce4-terminal?

With terminal emulators like gnome-terminal, it is possible to change settings programmatically, from the command line using dconf and gconf. But I have trouble finding a similar mechanism for xfce4-...
1
vote
0answers
43 views

How to modify blended video durations with a -filter_complex command argument in ffmpeg

Building off the solution provided in this thread, I'd like to know how to make simple modifications to a complex command argument which uses ffmpeg to interweave two videos by dissolving them into ...
1
vote
0answers
119 views

Is it necessary to explicitly flush the HDD on-disk write caches?

Abstract Sometimes, the Linux kernel is not aware of on-drive write caches of external USB storage devices. Is it necessary in such situations to explicitly flush those caches prior detaching these ...
1
vote
0answers
29 views

Script get in process multiple times

I have a script that starts, kills or restarts several java programs. However, when I execute it, it ends up running multiple multiple times in the background. This is my script: #!/bin/bash export ...