Questions tagged [command-line]
The command-line is the interactive interface to your shell.
713
questions with no upvoted or accepted answers
9
votes
3
answers
3k
views
Open Firefox twice (with same profile)
There are tons of resources that tell how to run several instances of Firefox in parrallel. I can't find any that tells me how to configure a command (on a command line, start menu item, or panel ...
7
votes
2
answers
923
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 -...
6
votes
2
answers
5k
views
How to resize at the beginning/move a btrfs partition on the command line?
I have a Linux/Windows dual boot setup on my notebook, in which I used to keep most of the data on the Windows partition to be able to access it from both systems. Since I almost never use Windows I ...
6
votes
0
answers
285
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?
6
votes
1
answer
1k
views
Synchronize IMAP to maildir folders - fast and complete solution with IDLE support?
This is likely to be borderline subjective, but I am searching for good alternatives for command line IMAP to maildir clients: Currently I am using offlineimap, but the docs are lacking, and support ...
6
votes
0
answers
605
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 ...
5
votes
0
answers
480
views
Launch Openbox actions through script or cli
I was wondering if it is possible to run openbox actions, like the ones that can be found on rc.xml like MoveResizeTo , through a console command so I can launch it from terminal or inside a bash ...
5
votes
1
answer
2k
views
Is there a way to set the QT icon theme, and other theme elements, from the command line?
I'm trying to automate the process of theming QT5 programs, in the absence of a DE like KDE, by writing a script that does it. I know that GTK has a bunch of config files that can specify all the ...
5
votes
0
answers
2k
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 ...
5
votes
2
answers
1k
views
Jingle CLI client / Jitsi replacement / VOIP
I am looking for a Jingle client for the command line.
Currently, I use Jitsi, but my dreams of not needing the GUI for more than just web-browsing are not realized due to my reliance on this program....
5
votes
2
answers
477
views
Workings of top and ps commands
How do the commands top and ps calculate CPU utilization using the /proc/[$pid]/stat file? Also how do they obtain memory utilization information about the process?
4
votes
1
answer
861
views
Does Firefox have a command-line flag to close the application?
I shut down Firefox at night by running killall -s SIGTERM firefox via cron, in order to apply the package manager and browser addon updates. Unfortunately each time when the browser is (manually) ...
4
votes
0
answers
244
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 ...
4
votes
1
answer
458
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
0
answers
1k
views
Coloring terminal commands ("syntax highligting" on command line)
I do know I can color my prompt using escape sequences in the PS1 variable.
Now, I would like to know if there is a way to put some color on the bash commands I often use, on the command line itself.
...
4
votes
0
answers
2k
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 ...
4
votes
0
answers
840
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
2
answers
2k
views
Modify Openbox key-bindings from commandline
I am using the LXDE desktop environment, which is based on Openbox. I know how to change the key-bindings by editing my ~/.config/openbox/lxde-rc.xml, e.g.:
<keybind key="A-F11">
<action ...
4
votes
1
answer
428
views
I am stuck connecting to the internet via a usb wifi stick
I am trying to set up a an internet connection through a usb wifi sticker in Linux.
Here's the sequence I tried:
iw dev
This returns the name(?) of the Interface that I want to connect to:
phy#0
...
4
votes
0
answers
7k
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 ...
4
votes
1
answer
433
views
Highlighting with regex within ssh session?
I'm working with a lot of routers and switches from Juniper, Brocade etc and none of those vendors have syntax highlighting or output coloring.
Does anyone know a working solution: how to setup ...
4
votes
0
answers
1k
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 ...
4
votes
0
answers
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 ...
4
votes
1
answer
2k
views
Run vsim from dmenu — it only works when directly invoked in the terminal
Works: vsim, sh -c vsim
Doesn't work: echo "vsim" | sh, echo "vsim" | xargs -I {} sh -c "{}"
I want to run ModelSim (vsim) with dmenu, which is triggered using xbindkeys.
Details
vsim is a ...
4
votes
2
answers
699
views
How do I make the CLI run on dedicated graphics?
I just finished my Gentoo minimal install and the first thing I wonder is why I get no picture. I did have signal on the live CD, so that was pretty odd. I plugged the monitor into the Intel HD ...
3
votes
0
answers
878
views
Speed up chown for very large codebase
We have a scenario where we need to chown <group>:<user> on a LInux machine frequently for large sandboxes which contain thousands of directories/subdirectories, textfiles, object files, ...
3
votes
0
answers
636
views
Recover file accidentally written over with cat >
I keep a text file of useful commands and info I collect as I'm learning linux. I had been opening it in vim whenever I came across something good to add, but that was getting tedious. So today I was ...
3
votes
0
answers
345
views
CLI tool to run commands defined in a config file
I'm working as part of a team of developers on a software project with many moving parts. We use a Makefile to easily run commands and scripts that are regularly needed during development. Examples ...
3
votes
1
answer
448
views
Same command sequence produces different results in command-line and script
I'm writing a utility script to help me delete Git branches in zsh. Currently, it looks like this:
git for-each-ref --format="%(refname:short)" refs/heads/ |
while read -r line; do
...
3
votes
0
answers
415
views
Joining multiple PowerPoint presentations
Is there a command that can be used to join several PowerPoint presentations (.ppt files) into a single file?
3
votes
0
answers
807
views
Measuring the sound level of a stream in dB from command-line
Is it possible to measure the volume of the sound stream currently being played by other programs in dB using just command-line? The target audio server is Pulse Audio.
3
votes
0
answers
1k
views
How to transfer files from a bluetooth-connected device using the command line (with middle-level commands)
Situation
I am working with Ubuntu 16.04 and 18.04.
After extensive research for another post on AskUbuntu I am looking for alternatives to the pair BlueZ/Blueman for transferring files via Bluetooth.
...
3
votes
1
answer
3k
views
USB Live persistence issue in Kali Linux: Disappearing upper panel and GDBus error
I'm encountering issue with USB Live persistence Kali linux.
I've installed it correctly and everything works fine initially. But after running it, the upper panel sometimes disappears. When opening ...
3
votes
0
answers
541
views
Burning large files on BD. Capacity confusion
I have a couple of large files I want to burn to an M-Disc 50G BD-R DL. Files are larger than 4G so I have to use UDFv3, if I am not mistaken. (Or split, which I am not especially keen on doing.)
A ...
3
votes
0
answers
1k
views
Extract audio from mp4 video using command line
Is there any command to extract audio from mp4 video?
3
votes
0
answers
6k
views
Why does this ssh tunnel command give an error on Mac but not Linux?
I was trying to tunnel a psql connection through a remote login server to a postgres database server, and I encountered some kind of difference in the way the arguments are parsed that led to a period ...
3
votes
1
answer
1k
views
zsh: insert last argument of previous command
I recently switched from bash to zsh. When typing a new command in bash (in vi mode), if I type Esc-_ (escape underscore), it inserts the last argument of the previous command. I want to do the same ...
3
votes
0
answers
6k
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
0
answers
3k
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 ...
3
votes
0
answers
1k
views
How can I send stdout to multiple commands in fish shell?
Same question as How can I send stdout to multiple commands? but for fish shell.
3
votes
0
answers
575
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
2
answers
2k
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 ...
3
votes
1
answer
2k
views
How to find gnome-terminal currently used profile with cmd line?
I'm using Ubuntu 16.04 and I want to be able to tell which profile is used by a given terminal emulator. Just the name would be enough.
It's trivial to find with GUI : just right click in the ...
3
votes
0
answers
2k
views
how to configure alpine to list all remote IMAP folders together?
This may be tangential to gmail usage; I registered a domain with gandi.net and want to access that e-mail with IMAP.
While I can edit this directly from .pinerc I cannot find this setting through M ...
3
votes
0
answers
766
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 ...
3
votes
0
answers
1k
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@...
3
votes
1
answer
2k
views
"ndd" equivalent of "ethtool" on Solaris
I've to restore a large file from a NAS backup on Solaris 10 ZFS. I'm using this following command:
rsync -av [email protected]:from/NAS/files/system to/solaris/files/system
And I've got this ...
3
votes
0
answers
1k
views
How to configure maven plugin from command line?
I'm trying to configure JaCoCo maven plugin from command line insted of using pom.xml. I have managed to execute prepare-agent so far with command:
mvn -X -Djacoco.destFile=./coverage/jacoco.exec ...
3
votes
3
answers
622
views
how to tell firefox to shutdown cleanly from tty1?
Lately I run Firefox almost exclusively from on one of my Debian laptops (which run testing). Occasionally (~monthly) my desktop/tty7 hangs, in which case I usually can goto tty1 and sudo shutdown -[...
3
votes
0
answers
770
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 ...