Questions tagged [command-line]
The command-line is the interactive interface to your shell.
6,310 questions
1 vote
1 answer
81 views
Can I redirect or suppress error messages in GRUB 2?
Is it possible in GRUB 2 to redirect or suppress error messages for specific commands, similar to how you can do it in Bash with command 2> /dev/null ? For example, when I run: menuentry 'CLEAR/...
-1 votes
0 answers
34 views
How to open URLs in incognito mode from shell on Chrome OS?
Yes, if this were normal Linux we could just do e.g., $ chrome-browser --incognito https://example.net Alas, unless we want to install another browser, all we can do in Chrome OS Linux terminals is: $...
0 votes
1 answer
75 views
How to move the cursor to an embedded newline on the bash command line? [duplicate]
I have just pasted a line into the bash shell. It contains embedded newlines. CTRL+a gets me to https at the start. CTRL+e gets me to 7d87 at the end. How can I move around from line 1 to 2 to 3 ...
7 votes
3 answers
1k views
Launching windows commandline commands within a WSL, what's the story?
In this Superuser question, I'm looking for a way to make the following work: find DLL.dll -exec /mnt/c/.../Windows_command {} \; Yes, I'm indeed trying to launch a Windows command inside a WSL. To ...
0 votes
1 answer
122 views
How to start the GRUB CLI with a menuentry
How can I create a simple menu entry in GRUB to start the GRUB console? menuentry "GRUB CLI" { #command } I have already tried the following options, but they do not work at all or only ...
0 votes
2 answers
81 views
What is /usr/sbin/authserver and the binary inside
When using the find command or any other recursive file searches, I always notice /usr/sbin/authserver in the context of a "permission denied" error. Just out of pure curiosity, what ...
0 votes
0 answers
101 views
How to use gdctl (Gnome Display Controller) to toggle between displays?
gdctl was released with Gnome 48: gdctl provides means to show the active monitor configuration, and set new monitor configuration using command-line arguments. In the past I've used the third-party ...
-1 votes
1 answer
85 views
Launch GUI program from command line as if it were launched using GUI
(NOTE: I know that similar questions have been asked before, but none of them have the constraints that this one does. So, don't mark it as a duplicate!) On macOS, using the open command, one can ...
3 votes
1 answer
117 views
Wine cmd automatically escapes quotes, adds backslash
$ wine cmd /c 'echo "hello world"' \"hello world\" Where do the backslashes come from? The command behaves differently in an interactive session: $ wine cmd Microsoft Windows 6.1....
0 votes
1 answer
49 views
Listing block devices on unix 7.1.14
I need to access an array with SCSI drives (storage works, modelHC901) and it's attached to a server running Unix 7.1.1.4. How can I list all block devices on this system?
2 votes
5 answers
893 views
How to use a "grep" result as an input of another grep, resulting in multiple lines?
I have built a Visual Studio solution, containing 92 projects. While building them, I get the following line for every one of them: 10>------ Rebuild All started: Project: HostLinkSw, Configuration:...
1 vote
1 answer
110 views
Run binary file from stdin
Is there any way to run binary file from stdin? In Android system I have /data/test in RW but noexec partition test.c #include <stdio.h> void main() { printf("%s\n","hi!")...
0 votes
1 answer
53 views
How to set a bind -V variable from the bash command line, not ~/.inputrc? [duplicate]
$ bind -V | grep horiz print-completions-horizontally is set to `off' How do I set it to `on' from the bash command line? I know how to set it in ~/.inputrc. That's not my question.
-1 votes
3 answers
271 views
Perl RegEx one-liner that outputs all matches from one line of STDIN
Here is a silly example that effectively illustrates what I need: echo '"this text", " ", "is in speech marks"' | perl -lne 'print "$1" if /"(.*?)"/' ...
0 votes
3 answers
182 views
How to construct a command from the output of another command?
I'm working with a Linux application. There is a command that I run to display a set of parameters. I would like to run the command and then grep through the results of the command and build a ...