Questions tagged [command-line]
The command-line is the interactive interface to your shell.
6,267 questions
0
votes
0
answers
28
views
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 ...
0
votes
1
answer
40
views
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 ...
0
votes
0
answers
39
views
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 ...
0
votes
0
answers
40
views
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/...
1
vote
0
answers
15
views
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 ...
0
votes
1
answer
36
views
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 ...
1
vote
0
answers
31
views
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 ...
6
votes
4
answers
577
views
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$ ...
2
votes
5
answers
626
views
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 '...
0
votes
0
answers
45
views
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?
-1
votes
6
answers
124
views
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:...
-1
votes
1
answer
81
views
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): ...
1
vote
4
answers
1k
views
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
└── ...
0
votes
1
answer
37
views
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, ...
0
votes
1
answer
58
views
Installing protonmail-bridge. Ubunto 24.04
protonmail-bridge_3.16.0-1_amd64.deb in Download directory.
> sudo dpkg -i ./protonmail-bridge_3.16.0-1_amd64.deb
Selecting previously unselected package protonmail-bridge.
(Reading database ... ...