Unix & Linux Stack Exchange Community Digest

Top new questions this week:

Why does crontab use a wrong editor?

man crontab reads: The -e option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit from the editor, the modified ...

cron editors  
user avatar asked by decision-making-mike Score of 9
user avatar answered by Stephen Kitt Score of 19

What is the USER= value reported for sudo attempts?

On my Arch system, failed attempts to run sudo cause a line like this to be added to the logs (note the USER=root): Nov 20 14:59:31 oregano sudo[191472]: bob : user NOT in sudoers ; TTY=pts/26 ; ...

sudo logs journalctl  
user avatar asked by terdon Score of 8
user avatar answered by muru Score of 10

How to separate start directories and expression in `find`?

find takes an (optional) list of (what the man page calls) "starting points", i.e. directories, followed by an expression. Is there a way to cleanly separate both types of arguments so that ...

find  
user avatar asked by Florian Brucker Score of 7
user avatar answered by Stéphane Chazelas Score of 10

Difference between these 2 different ways of extracting files from a zip archive

I am trying to unzip a set of files (3 files). These files contain a lot of random files, duplicate files etc. To do this, I am first unziping the list of the names of files into a text file, then ...

zsh macos zip archive  
user avatar asked by CarriMegrabyan Score of 6
user avatar answered by Stéphane Chazelas Score of 5

How to resize ext4 without adding more inodes?

On this filesystem, there are enough inodes already, I only need more filesystem size: # df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/mapper/spinning-backup ...

ext4 inode resize2fs  
user avatar asked by klaus thorn Score of 6
user avatar answered by Stephen Kitt Score of 10

Headless disk-mount with user permissions

There is a headless machine, with Debian as its OS: $ cat /etc/issue Debian GNU/Linux 11 \n \l $ uname -a Linux mymachine 6.1.99 #33 SMP Tue Jan 21 11:32:39 CST 2025 aarch64 GNU/Linux What I wish to ...

automounting headless udisks  
user avatar asked by Daniel Score of 4
user avatar answered by cas Score of 4

Choice of field separator affects sort's ordering

Suppose we have a script named test_sort in our $PATH with the following contents: #!/bin/bash function echo_text () { printf -- "%s\n" "$fc$oc$fs$lc" printf -- "%s\n&...

bash shell sort  
user avatar asked by Melab Score of 4
user avatar answered by terdon Score of 6

Greatest hits from previous weeks:

How to correctly add a path to PATH?

I'm wondering where a new path has to be added to the PATH environment variable. I know this can be accomplished by editing .bashrc (for example), but it's not clear how to do this. This way: export ...

bash environment-variables path bashrc  
user avatar asked by Paolo Score of 1412
user avatar answered by Gilles 'SO- stop being evil' Score of 1582

Why does "drm:vmw_host_log [vmwgfx]] *ERROR* Failed to send host log message" show up and what can I do to fix it?

This error shows up everytime I install Kali Linux, whenever I try to boot it. Then, it dissapears and the screen blacks out. The error is the following:+[drm:vmw_host_log [vmwgfx]] *ERROR* Failed to ...

boot kali-linux virtualbox  
user avatar asked by A user of Kali Linux Score of 69
user avatar answered by Harikrishnan C Score of 78

How can I monitor disk io?

I'd like to do some general disk io monitoring on a debian linux server. What are the tools I should know about that monitor disk io so I can see if a disk's performance is maxed out or spikes at ...

linux disk  
user avatar asked by camomileCase Score of 376
user avatar answered by jordanm Score of 314

GRUB starts in command line after reboot

I installed Linux Mint on my laptop along with a pre-installed Windows 10. When I turn on the computer, the normal GRUB menu appears most of the time: But after booting either Linux or Windows then ...

grub2 dual-boot uefi boot-loader rescue  
user avatar asked by Antoine Aubry Score of 113
user avatar answered by MacMartin Score of 146

How to install Desktop Environments on CentOS 7?

I have recently installed CentOS 7 (Minimal Install without GUI) and now I want to install a GUI environment in it. How can I install Desktop Environments on previously installed CentOS7 without ...

centos gui desktop-environment  
user avatar asked by αғsнιη Score of 217
user avatar answered by αғsнιη Score of 340

-bash: sudo: command not found

I am trying to deploy django app. When I print apt-get update I see W: Unable to read /etc/apt/apt.conf.d/ - DirectoryExists (13: Permission denied) W: Unable to read /etc/apt/sources.list.d/ - ...

debian apt sudo su  
user avatar asked by user2950593 Score of 176
user avatar answered by Maksim Luzik Score of 233

What is the "eval" command in bash?

What can you do with the eval command? Why is it useful? Is it some kind of a built-in function in bash? There is no man page for it..

bash shell eval  
user avatar asked by LanceBaynes Score of 341
user avatar answered by echox Score of 254

Can you answer these questions?

No Xorg after upgrade on Debian testing/forky

After today's apt-upgrade of my Debian testing system I cannot start an (Xorg) x-session any more on a machine with Intel HD graphics and using the modesetting driver (the classic i915 does not work ...

debian x11 intel-graphics  
user avatar asked by commonBlock Score of 1
user avatar answered by commonBlock Score of 0

I'm trying to share a folder, but Fedora displays:- Failed to enable unit: Unit samba.service does not exist

I'm trying to follow the instructions on the Fedora site, to create a Samba share:- sudo dnf install samba Package "samba-2:4.23.3-1.fc43.x86_64" is already installed. Nothing to do. sudo ...

networking fedora samba shared-folders  
user avatar asked by Steve Franks Score of 1

How to dump the lost+found content from an ext4 img file that cannot be mounted using debugfs in linux and keep the folder hierarchy?

How to dump the lost+found content from an ext4 img file that cannot be mounted using debugfs in linux and keep the folder hierarchy? My ext4 disk was failing. I made a disk image. I tried e2fsck and ...

ext4 debugfs lost-found  
user avatar asked by Estatistics Score of 1
user avatar answered by Estatistics Score of 0
You're receiving this message because you subscribed to the Unix & Linux community digest.
Unsubscribe from this community digest       Edit email settings       Leave feedback       Privacy
Stack Overflow

Stack Overflow, 14 Wall Street, 20th Floor, New York, NY 10005

<3