Testing if a file descriptor is valid
I’d like to make a bash script output additional information to file descriptors (FDs) greater than or equal to 3, when they are open. To test whether an FD is open, I devised the following trick:
I’d like to make a bash script output additional information to file descriptors (FDs) greater than or equal to 3, when they are open. To test whether an FD is open, I devised the following trick:
I have installed Debian 8, but I neeed to use just multi-user text mode, runlevel 3, instead of appear my Gnome 3.
Is there a way I can see the environment variable of an other user? I want to do that as root, so permissions won’t be a problem I guess. For the user himself, I use echo $PATH or set | grep PATH (or set when I don’t remember the variable name). What would be a … Read more
Is there some better solution for printing unique lines other than a combination of sort and uniq?
If I can send audio to the output devices, then I can record the same audio as a wave. With filesystems, you can just setup a loopback filesystem and write binary data on a file instead of a device.
The rootfs is a squashfs image and my bootloader is loading it into some address in SDRAM. What parameters do I need to pass to the kernel so It can mount the rootfs from there? Squashfs support is built-in and it already works with
We have env(1) to modify the environment of the command we want to run (for example env MANPAGER=more man dtrace). Is there something similar but for modifying the directory that the command is going to be started in?
I have the current libvirt 1.2.20
i want to pass to my machine create with virt-manager
some qemu flags.
I edited the file and add
I am running Fedora 17 gnome (shell) 3 and gnome terminal 3.4.1.1.
Following an unclean shutdown and a colourful fsck, a whole bunch of files have gone missing. The output of ‘rpm -Va’ is several hundred lines long (mostly missing files but also some checksum and other mismatches). Is there an easy way to reinstall packages which have missing and/or corrupt files?