9
Hidding an encrypted folder in a shared system without root access (unshare -m)view story

http://unix.stackexchange.com – I'm a graduate student trying to use a cluster at my university. These machines are shared, so I want to protect the source code I use (I signed a NDA, so I'm scared about publishing the code by accident or making it public very easily). So far, I managed to put my source code in a ecryptfs. (HowTos)

9
Writing CPU usage by core and RAM/CPU usage by process to a logfile in OS Xview story

http://superuser.com – I am writing a script that writes memory and CPU usage to a log file, every hour on a cronjob. (HowTos)

9
Python: os.read() blocking on fd- nothing I have tried works so far, see examplesview story

http://stackoverflow.com – Condensing previous questions that suffer from XY problem into this one with my code for clarity: I have a user-run process that runs "/bin/sh -i" via proc_open. The control process is basically a middle-man for the user instead of them running a shell directly so that input/output can be modified in realtime by the control process. (HowTos)

9
Use of ^ as a shell metacharacterview story

http://unix.stackexchange.com – I wrote a small script today which contained grep -q ^local0 /etc/syslog.conf During review, a coworker suggested that ^local0 be quoted because ^ means "pipe" in the Bourne shell. Surprised by this claim, I tried to track down any reference that mentioned this. (HowTos)

9
Prevent wildcard expansion on findview story

http://unix.stackexchange.com – Is there a way to prevent wildcard expansion on the find command so that the following would work? find . -iname "foo [bar]" As pointed out here, I tried running set -f, set -o noglob and setopt noglob just before find but it didn't work. It's a bash script and I'm using Ubuntu 10.04. I know I could just escape the wildcard characters but I fear I might leave one out. (HowTos)

9
How (not) to setup lightweight WM for occasional server management?view story

http://serverfault.com – I'm working with our admin team to firm up all the requirements of the dev team before creating some system images. One of the things we ended up needing is a lightweight GUI setup. Knowing that the overhead should not really exist on servers, we'd keep the X server off. (HowTos)

9
Why can't I malloc as much memory as `free` reports as being free?view story

http://serverfault.com – tl;dr: answer: memory fragmentation can prevent 220 MB (out of 6450 MB) from being allocated when allocating 10 MB slices. See @Michael Hampton's comment Original Question The following C program allocates slices of 10MB of memory until it is killed by the Out of Memory killer. (HowTos)

9
Shell script that finds a word within a file selected by a userview story

http://stackoverflow.com – I am training to do shell scripting as a hobby, I was stumbled on a task I was given by my tutor. The task is to make a shell script that you can enter a file name you want to search in and then it will respond if it exists or not; then if it exists you have another option to find a certain word in the file that exist in there the certain word must be shown. Here is what I've done so far. (HowTos)

9
What is the language that appears on the first line of a script?view story

http://unix.stackexchange.com – Bash scripts start with the following line #!/bin/bash # Rest of script below ... In bash the # character is the start of a comment, but #!/bin/bash is definitely not a comment, therefore it isn't bash but the kernel that interprets that statement. So what exactly is that first line? Is it a specific language, or a special one-off case in the Linux kernel? (HowTos)

9
Time zone mismatch calling date via sshview story

http://stackoverflow.com – I'm getting two different timezones on Linux (CENTOS 5.6) depending on whether date is called locally or via ssh: foo$ ssh me@bar date Tue Nov 5 18:08:32 EST 2013 foo$ ssh me@bar bar$ date Tue Nov 5 17:09:16 CST 2013 /etc/localtime is set to central time: $ ls -l /etc/localtime lrwxrwxrwx 1 root root 27 Nov 5 13:10 /etc/localtime -> /usr/share/zoneinfo/CST6CDT TZ is set to America/ (HowTos)