using “sudoedit” on Linux

https://stackoverflow.com/questions/22084422/what-is-the-difference-between-sudoedit-and-sudo-vim#22084506 http://www.wingtiplabs.com/blog/posts/2013/03/13/sudoedit/ This protects /etc/crontab against concurrent editing and corruption: $ sudoedit /etc/crontab

Published
Categorised as Linux

Linux package managers: permissions, user/group ownerships of files in a package

https://en.wikipedia.org/wiki/Dpkg https://en.wikipedia.org/wiki/Dpkg#Database: /var/lib/dpkg/… https://en.wikipedia.org/wiki/Rpm_(software) https://en.wikipedia.org/wiki/Rpm_(software)#Local_RPM_installation_database: /var/lib/rpm/… https://unix.stackexchange.com/questions/634/what-are-the-pros-cons-of-deb-vs-rpm RPM based environments support verifying and resetting permissions and user/group ownerships of files in a package: https://www.cyberciti.biz/tips/reset-rhel-centos-fedora-package-file-permission.html – https://ashok-linux-tips.blogspot.de/2011/12/how-to-reset-permissions-of-installed.html https://www.novell.com/coolsolutions/feature/16238.html But what about Debian based ones? On Debian there is a file for every (installed) package: /var/lib/dpkg/info/package.list That file only includes filenames and directory names (and no details at all). Directories… Continue reading Linux package managers: permissions, user/group ownerships of files in a package

Git SCM: merge local master branch with remote master branch

https://stackoverflow.com/questions/18116198/merge-local-master-branch-with-remote-master-branch-in-git The “git pull remote master” did not work for me, I used “git pull origin master” instead (was this right?). https://stackoverflow.com/questions/16560095/git-pull-origin-master-branch-to-local-master-when-in-local-develop

Published
Categorised as Git SCM

Bash: [[…]]: the pattern, quoting, …

https://www.gnu.org/software/bash/manual/html_node/Conditional-Constructs.html — look for the very helpful xxx.txt example! I was tempted to put the entire pattern in (double) quotes. But that’s not Bash style. You can “certainly” put literal parts in quotes, but regexp parts do not belong in quotes — quotes are good for protecting, amongst other aspects: protecting against interpretation as regular expression. That’s… Continue reading Bash: [[…]]: the pattern, quoting, …