A suite of essential system utilities for Linux.

learn more… | top users | synonyms

1
vote
2answers
58 views

Why does util-linux runuser (su) fork?

Using runuser from util-linux (a different entry point for su, which only operates if starting from root), one sees a process tree that looks something like the following: [root] runuser -u username ...
2
votes
1answer
65 views

How does 'whereis' find files so quickly? [duplicate]

I was recently trying to find a binary file with a certain name. I decided to use the whereis search utility (part of the util-linux package). This managed to find the file in half the time than ...
4
votes
1answer
168 views

Why and when does `lsblk` require `sudo`?

On my up-to-date Arch Linux, lsblk works fine without sudo: $ lsblk -o NAME,FSTYPE NAME FSTYPE sda ├─sda1 ext4 ├─sda2 ext4 ├─sda3 swap ├─sda4 └─sda5 ext4 sr0 $ lsblk --version lsblk ...
1
vote
1answer
128 views

lsblk does not return the entire line for the results [closed]

I am having trouble with the command below: ssh -q -o PubkeyAuthentication=yes -o StrictHostKeyChecking=no -o ConnectTimeout=2 -o BatchMode=yes SERVERNAME "lsblk -il" 2>/dev/nul It returns the ...
1
vote
1answer
4k views

Ubuntu runuser command?

I am creating a bash script that requires to run commands as a specific user. As a result I am using the command: runuser I have tested this script and it works perfectly in Ubuntu Server 14.10. ...
3
votes
1answer
362 views

Set environment inside `nsenter /bin/bash`

I'm entering a namespace with nsenter -m -u -i -n -p -t $PID /bin/bash. However, printenv inside this namespace doesn't have everything I need. I'd like to send these variables in, but I'd like to ...
1
vote
2answers
279 views

Linux why does yum say up-to-date when newer versions available?

I am trying to install an up-to-date version (2.19) of util-linux to get lsblk but yum doesn't find it: [Harry@SN031568820668 ~]$ sudo yum install util-linux Loaded plugins: presto, ...
4
votes
1answer
870 views

Is there a command to switch to into an existing namespace?

I am using multiple UTS namespaces, each of them has some servers constantly running. I can get the namespace IDs via readlink /proc/<pid>/ns/uts, now I would like to change into a given ...
4
votes
2answers
12k views

Trouble getting busybox switch_root to work

I'm working on an embedded ARM Linux system that boots using initramfs. (Here's some background from a couple earlier questions, if you're interested.) So far, thanks in part to help received here, I ...
5
votes
1answer
825 views

How to use the ul command line utility

I wanted to answer http://unix.stackexchange.com/questions/3043/use-roff-to-underline-words with "just use ul, this command is meant specifically for underlining text", however I just can't grasp how ...