New answers tagged


Improving SHW's great answer to make it work with any locale, like Zbyszek already pointed out in his comment: LC_ALL=C find ./photos/john_doe -type f -name '*.jpg' -exec du -ch {} + | grep total$


In addition to cjm's answer, be aware that sometimes /usr/share/emacs/site-lisp/ might contain files that will shadow the files in a particular emacs installation. I was mad at an error of Emacs25 not being able to find the function ispell-hunspell-add-multi-dic, until I ran list-load-path-shadows and found out that the ispell.el file is being shadowed by ...


To get the structure you are asking for, I would suggest using -nH as well as -x. This will remove the hostname as well as create the expected directory structure. e.g. wget -x -nH - 'Dir1/Dir3/sds.exe' saved [1234] From the man page: -nH --no-host-directories Disable generation of host-prefixed directories. By ...


/dev/shm - shared memory, is used for programs to share things on the RAM. /run - it contains small files, with information about programs in execution, is usefully for example, when a program cant be run twice, so the executing program can alert a second program preventing it to be executed, and other things. /sys/fs/cgroups -


There is nothing abnormal about having tmpfs filesystems in your Linux box. tmpfs is a memory only filesystem, much like the "RAM disks" of other operating systems. As the name implies, the content lives in RAM, so it goes away after a reboot. It is also extremely fast. tmpfs is commonly used in situations where you don't care about the contents of a ...


To find world writable directories, you can use find / -xdev -type d \( -perm -0002 -a ! -perm -1000 \) -print For files change type to f For symlinks type to l To set sticky bit: find / -xdev -type d \( -perm -0002 -a ! -perm -1000 \) -print0| xargs -0 chmod +t

Top 50 recent answers are included