The tag has no usage guidance.

learn more… | top users | synonyms

4
votes
1answer
85 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
63 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
2k 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
275 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
200 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
587 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
9k 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
638 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 ...