Tag Info

Hot answers tagged

2

As @Hyppy stated you need to use grep in any of these ways: Against a file: grep balance filename At the end of a pipe: somecommand | grep balance With extended regex : grep -E '^"balance":'


1

You said: My sshd_config file has two changes from the default UsePAM was set to no and PasswordAuthentication was set to yes. I don't think that had anything to do with it. Actually that almost certainly is your problem. On a Linux system with PAM, attempting to login bypassing PAM is not guaranteed to work, and generally does not. Set UsePAM yes and ...


1

disclaimer: you should read lvm manual carefully and understand what each step does. however, there should be very little risk unless you encounter errors. this is what I do usually i this case. if there is a chance that someone else might do something to mess you up, you want to block any login while doing the maintenance (touch /etc/nologin etc. per your ...


1

The answer is the use of bash extglob, and works here, as well as many other Linux functions that accept file designation in the /directory/* form. Changing the group of files greedily in a directory, while excluding a directory, is possible by first turning extglob on, and then including the directory name to exclude as such: shopt -s extglob chgrp ...


1

You can use GNU find's ability to not follow a directory path into another filesystem: find /some/path -mount -exec chgrp groupname {} +



Only top voted, non community-wiki answers of a minimum length are eligible