New answers tagged directory-structure
You usually do this with cron. If you worry that some lower-privileges user might edit python script maliciously, just grant him read-rights only, forbidding writing to this file.
/etc/systemd/system is where you put your scripts, pacman puts package scripts in /usr/lib/systemd/system. Issuing systemctl enable foo.service creates symlinks from /usr to /etc. See the Unit Load Path section of man systemd.unit(5) for more detail.
I've written 3, one for ntpd, one for a second, static ethernet card, and one for running p0f, the passive OS identifer. I put them all in /etc/systemd/system. Looks like I could maybe let systemd handle the NTP stuff, but I don't think I want to rely on it that much.
When installing local applications, there are multiple options depending on how you want to access and update. Also should be noted that some methods look more like the system you already have and some are more ad-hoc. For only few packages,it is recommended to put add-on packages in /opt, where they are out of the way of everything else so nothing can mess ...
Simply change permissions of the files in a way everyone could read them, but not alter them. When you use ls -l to list your files, you get something like ls -l file -rw-rwxr-- 1 rafael Grp 1620 Aug 18 14:58 file That first set of dashes/letters sets the permitting of three distinct (but not exclude each other) groups, namely User ...
Yes it looks somewhat funny but that's intended configuration we all have for the backward compatibility. On Debian/Ubuntu based systems x11-common package actually provides such a symlink: $ ls -l /usr/bin/X11 lrwxrwxrwx 1 root root 1 Mar 17 02:52 /usr/bin/X11 -> ./ $ dpkg -S /usr/bin/X11 x11-common: /usr/bin/X11 man hier contains some historical ...
There is a link (at least in my Mint 17.2 install) in /usr/bin/X11 called X11 pointing to the directory: $ ls -l /usr/bin/X11/X11 lrwxrwxrwx 1 root root 1 Jun 1 2014 /usr/bin/X11/X11 -> ./ so this is normal, but does require your tab expansion to be set to only expand subdirs (or that link is the only entry in /usr/bin/X11).
In Unix and clones like Linux, /usr/src is not just for any source code. It is traditionally where you put the source code for the running operating system. The basic build tools for each OS and their configuration files are set to use /usr/src and if all you did was ln -fs /usr/share/src /usr/src then those tools are still going to find it in the expected ...
Top 50 recent answers are included