Questions tagged [command-line]
The command-line is the interactive interface to your shell.
6,268 questions
0votes
2answers
29views
how do I find the current i2c bus speed?
I am building custom game controllers on Linux that use the i2c bus present in video ports such as HDMI, dvi, and VGA, on standard PC hardware (x86_64). I would like to verify my current i2c bus speed ...
0votes
0answers
28views
Fedora: Is there a command to change keyboard layout but by TUI?
For Fedora Server to change the keyboard layout is possible use the sudo localectl set-keymap <keymap> command in peace. Other approach would be with TUI (Terminal User Interface). I found the ...
0votes
1answer
40views
What output does --iso-8601=ns provide with the date command?
This command will output the following: date --iso-8601=ns 2025-04-04T12:10:16,045431370+02:00 According to man date the ns is documented as follows: -I[FMT], --iso-8601[=FMT] output date/time in ...
0votes
0answers
40views
How do I delete a faulty device class from the command line
I was writing a simple character device driver. There was an issue in the cleanup function, cdev_del was called before device_destroy, Which means I deleted the cdev structure before deleting the ...
0votes
0answers
40views
Trying to to install symas for openldap on an M3 Mac running Arm64 Rocky Linux 9 gives an error
First, we will install the packages onto VM1 with sudo wget https://repo.symas.com/configs/SOFL/rhel8/sofl.repo -O /etc/yum.repos.d/sofl.repo: [bill@target ~]$ sudo wget https://repo.symas.com/configs/...
1vote
0answers
16views
How to acquire the current colour profile via the CLI under X and Wayland?
I realise that the method may differ between XOrg ≤ V11 and Wayland implementers, especially amongst compositors. Consequently, my focus is ⪆ kwin-6.3.3-1. I ask because I want to be able to ascertain ...
0votes
1answer
36views
Querying domains against Spamhaus DBL
I am struggling for a few weeks to be able to query domains against spamhaus' DBL. I am capturing a list of newly registered domains, and looking to see if any of these domains have been flagged by ...
1vote
0answers
31views
Alt + . but search for recent arguments
In bash when I press Alt + . (which is mapped to yank-last-arg), it will switch through arguments I used last to invoke CLI programs. Is there something like a search for it? Something like Ctrl + R ...
6votes
4answers
577views
get chain of users created by chaining su calls
While administrating a linux server (a Debian server, for instance), I often switch users. Sometimes, I will chain multiple user switches together: aluriak$ sudo -s root$ […] root$ su aluriak aluriak$ ...
2votes
5answers
627views
How to display and count vowels in file
I have a file with a name list as shown below: Ishmael Mark Anton Rajesh Pete I am trying to print something like this: Iae 3 a 1 Ao 2 ae 2 ee 2 I developed this code: cat names.txt | grep -Eo '...
0votes
0answers
46views
How do I restore a cancelled command to buffer after hitting Ctrl-C?
Sometimes I hit Ctrl+C on the command line to cancel a command that hasn't been executed yet. But if I regret cancelling the command this way, how can I restore it and continue writing it, in zsh?
-1votes
6answers
124views
How to count blank fields from a delimited file in Unix
from script below: EmpID:Name:Designation:UnitName:Location:DateofJoining:Salary 1001:Thomson:SE:IVS:Mumbai:10-Feb-1999:60000 1002:Johnson:TE::Bangalore:18-Jun-2000:50000 1003:Jackson:DM:IMS:Hyderabad:...
-1votes
1answer
83views
MariaDB password only works if passed as command line argument
If I try to login this way, it works. $ mariadb --user blogbot -p"password" If I try to login this way, it doesn't work. $ mariadb --user blogbot -p Enter password: ERROR 1045 (28000): ...
1vote
4answers
1kviews
How can I get the absolute path of a file deep within a directory?
Here's an example of directory level0 contents in a tree-like format. However, suppose it is huge and contains many files as I am omitting many of them here: $ tree level0 level0 └── level1 └── ...
0votes
1answer
38views
How to find key codes to use in readline applications? [duplicate]
I'm trying to create readline macros and bindings, but struggling to find codes for some key sequences. How to find codes for key combinations, like "\e[1;2A" for Shift-Up, etc? By the way, ...