Skip to main content

Questions tagged [command-line]

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

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 ...
Manuel Jordan's user avatar
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 ...
metablaster's user avatar
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 ...
maths soso's user avatar
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/...
Roberto_1986's user avatar
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 ...
RokeJulianLockhart's user avatar
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 ...
Raterax's user avatar
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 ...
glades's user avatar
  • 117
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$ ...
aluriak's user avatar
  • 193
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 '...
Ismael Sanchez's user avatar
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?
xuhdev's user avatar
  • 587
-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:...
Ismael Sanchez's user avatar
-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): ...
FLAK-ZOSO's user avatar
  • 101
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 └── ...
showkey's user avatar
  • 437
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, ...
Alex's user avatar
  • 1
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 ... ...
Uglyfuzzbump's user avatar

15 30 50 per page
1
2 3 4 5
418