Questions tagged [util-linux]
A suite of essential system utilities for Linux.
34 questions
0
votes
2
answers
46
views
`column` can split a line into columns with `-t` but can it wrap the result?
I have a tsv with a lot of columns and I'm trying to output a concise version of those columns formatted to 80 characters wide. I figured column would help wrap this for me, but the c flag seems to ...
1
vote
2
answers
130
views
The ambiguous principles that guide the lsblk utility in removing duplicates of displayed records
Linux Mint 20.3
lsblk -V
lsblk from util-linux 2.34
Let's find an explanation for the ambiguous behavior of the lsblk utility applied with the -E option.
Here is the output without applying the -E ...
1
vote
0
answers
61
views
Msys64/mingw64 trouble, why its 'ln' command did `copy`
On Msys2 env.:
$ cd /c/msys64/mingw64/lib/
$ ln -s libz.dll.a libzlib.dll.a
But confusingly why
ln
command did copy
instead of linking it symbolically ?
$ ls -l libz*
-rw-r--r-- 1 abdu None 108700 ...
3
votes
1
answer
161
views
linux command whereis returns the path of a non-executable file
Help me understand the logic, please - from whereis man:
OPTIONS
-b
Search for binaries.
But when i use this it returns path to dir:
kl@debian:~$ whereis -b postfix
postfix: /usr/...
1
vote
1
answer
119
views
Several rename commands in shell script [closed]
Trying to figure out how to include several rename commands in one shell script that I will save as a cron job.
What I would like to accomplish is renaming different words and also suppress error ...
-2
votes
2
answers
839
views
runuser: execute commands without use of quotation marks?
Overview
I'm attempting to execute commands as a different user without using quotation marks as well as making sure the executed command isn't inheriting environment from the parent shell.
runuser ...
1
vote
2
answers
330
views
New "more" command form feeds before every file: how to suppress?
For 35 years I've been watching the more command work like this: when specifying multiple files, and without any options, it displays a header and the file contents as follows (most easily seen for ...
3
votes
3
answers
4k
views
Could you suggest how to use `rename.ul` under Ubuntu 22.04 ? Many thanks?
Could you suggest how to use rename.ul under Ubuntu 22.04 ? Many thanks !
Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 5.10.102.1-microsoft-standard-WSL2 x86_64)
* Documentation: https://...
2
votes
2
answers
2k
views
`column` from `util-linux` and not from `bsdmainutils`
column is available in packages util-linux and bsdmainutils. Both these packages are installed in Linux Mint 20.2
$ type column
column is /usr/bin/column
column is /bin/column
Both these column are ...
2
votes
1
answer
770
views
More / file reporting "not a text file" file which contains only one letter and newline
I am confused by the output of the more program under linux. When creating a file which contains only a single letter (except for special letters like ä which work fine), more does not report the file'...
0
votes
2
answers
263
views
Does logger(1) command belong to util-linux? [duplicate]
Does logger(1) command belong to util-linux? it is not shown in https://manpages.debian.org/testing/util-linux/index.html, but in https://manpages.debian.org/testing/bsdutils/logger.1.en.html.
0
votes
1
answer
621
views
blkdiscard hangs on md raid 10 on PCIe SSDs
I have a running Linux 4.19 amd64 system with two PCIe SSDs that I'd like to clear, test, reformat and put in use again. All of the data has already been moved away. I've
tried to trim/discard blocks ...
2
votes
2
answers
173
views
How to recover from replacing all characters in my filenames 1:1 with whitespaces?
$ rename 's/./ /g' *
$ ls -l
total 6832616
-rw-r--r-- 1 jboo jboo 0 Sep 28 01:44
-rw-r--r-- 1 jboo jboo 43361681 Sep 28 01:44
-rw-r--r-- 1 jboo jboo 47499946 Sep 28 01:44
-rw-r--r-- 1 jboo ...
3
votes
1
answer
241
views
How is the output of `losetup --list` sorted?
When I run losetup --list (or just losetup) to get a list of the loopback devices on my system, the output doesn't seem to be in any meaningful order:
0 $ losetup --list
NAME SIZELIMIT OFFSET ...
2
votes
1
answer
395
views
util-linux look with german umlauts
I am currently having problems with util-linux's look in combination with German umlauts (ä, ö, ü). For testing purposes I set LC_ALL=de_DE.UTF-8.
Consider german.dic:
Aachen
Rindfleisch
in UTF-8 ...