Questions tagged [command-line]

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

619 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
1answer
2k views

How to access the Evolution calendar data from the command line?

I want to be able to access the Evolution calendar from the command line. Specifically, I'd like to be able to: List calendar events (the one-line summary, date and time is enough) Upcoming events ...
7
votes
1answer
2k 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 ...
5
votes
1answer
529 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 ...
4
votes
0answers
406 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 -...
4
votes
1answer
2k 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 ...
4
votes
2answers
19k views

Specify file name with curl --upload-file

When uploading a file with curl's --upload-file option, how do I specify a file name different than the one on disk? With the -F option, it can be done like this, I think: curl -F 'file=@/path/to/file/...
4
votes
1answer
266 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
436 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
1answer
7k views

How to install and set new themes in KDE plasma via terminal

I've been having some issues with the breeze theme while starting plasma and I want to know if there is a way to install a another plasma theme via the terminal and set that to default. I'm using arch ...
4
votes
0answers
577 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
2answers
1k 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
1answer
342 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
0answers
948 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
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 ...
4
votes
0answers
371 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 ...
4
votes
2answers
466 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 ...
4
votes
2answers
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....
3
votes
0answers
109 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
0answers
79 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
1answer
269 views

How to generate (git) diffs with <n> characters of context?

The --unified=<n> option lets you set the number of lines; is there a way to do the same for characters? example limit the context around the changes to X character(s) when using git diff --...
3
votes
0answers
3k 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
103 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
2k 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
0answers
376 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
1answer
1k 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
0answers
546 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
0answers
998 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 ...
3
votes
2answers
2k views

What is happening after kill -CONT <PID>?

I have suspend a process through kill -TSTP <pid>. Then tried to continue it with kill -CONT <pid>. But After completion of process, control is not returning to bash. Why this is happening?...
3
votes
3answers
271 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
0answers
581 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
4k 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
1answer
242 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 ...
3
votes
0answers
1k 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 ...
3
votes
1answer
2k views

Show connected printers in CUPS

Is there a way to list the available/connected printers in CUPS using the command line or better yet using the CUPS API ? I already tried lpstat -a but it only lists the installed printers and not ...
3
votes
1answer
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 ...
3
votes
1answer
390 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 ...
3
votes
1answer
2k views

Xorg Setting checking from Command Line

How do I determined, whether Xorg is using Xinerama, DDC and Reduced Blanking ?? Just adding few options in Xorg.conf is sufficient ? If I have to check from command-line, then how can I check ...
3
votes
2answers
5k views

IBM V7000 scripts for monitoring

Hello (I'm no hard core coder:), I try to develop a script to do some very basic monitoring on an IBM SVC. My goal is to get some information about the nodes and my quroum status and then send ...
3
votes
0answers
115 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.
3
votes
1answer
3k views

Debian10: No such file or directory: /dev/dri/card0

I'm installing Debian 10 but I cannot startx nor have a GUI. I think the problem is about some driver. Here are the errors I've got in /var/log/Xorg.0.log : [drm] Failed to open DRM device for pci:...
3
votes
2answers
1k views

Kill process by name

I am using bash to start several instances of one python program, like this: python example.py -id $i where $i is the id given to the instance. All the processes are started on the same user, and ...
3
votes
3answers
1k views

Scroll by line in terminal rather than by page Shift + PgUp

Is there a keyboard way to scroll the terminal by line the same way we scroll with mouse wheel? Shift+PgUp/PgDown give only by-page scrolling. I would like to scroll slowly as with mouse wheel. My ...
3
votes
1answer
264 views

Why does the kernel boot faster with less memory allocated?

This is not an important question, I'm just curious. Something strange happened, which isn't quiet clear to me: In the kernel command line, the amount of the memory can be set statically with the mem=...
2
votes
0answers
209 views

Libre Office - convert calc/exel schedule to csv from command line

I'm truing to batch convert some exel schedules to csv format from the command-line with the following command: libreoffice --convert-to csv *.xlsx I'm getting: error xsltParseStylesheetFile : cannot ...
2
votes
0answers
146 views

Convert flac to wav with tags and cover art

I have a bunch of flac files with tags and cover art. I need to convert them to wav and retain the tags and cover art. I also need to do this in a terminal on a headless Raspberry Pi 4B running ...
2
votes
0answers
60 views

Output of groups command for secondary groups differ from the out of id command

As I know the groups command and the id command should both in their output display the secondary groups of a user. But in my case the output differ from each other: $ id <username> uid=1000(...
2
votes
0answers
153 views

One line HTTP Proxy command?

Is there a simple, one-line command to run a HTTP Proxy? There are several one-line commands “serve this directory over HTTP” (e.g. python -m SimpleHTTPServer). Is there any command, or one-liner, for ...
2
votes
0answers
24 views

Is there a way to have code templates for “if”, “for” (or) for any multiline commands in terminal?

Code templates are handy and help in finishing codes without error. I am aware that notepad editors like atom provide code templates for if and for loop for bash. Also aware that man pages provide ...
2
votes
0answers
938 views

Failed to show the preferences dialog GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown

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 ...
2
votes
1answer
306 views

rm -f <file> command returns “invalid Argument” mv, chmod met with same output

Below I've included a truss of the command, I've tried various ways to rm, but each one is met with the same output: NOTE: this was run on an isilon NAS cluster (their Technical support is also ...

1
2 3 4 5
13