dmatwork.blogspot.com
DM@Work: February 2012
http://dmatwork.blogspot.com/2012_02_01_archive.html
Friday, February 17, 2012. More than one 'exec' action in 'find' command. Command, you can pass the names of the found files to an arbitrary command using. Find /tmp -mtime 3 -exec rm {} ;. The curly braces get replaced by the name of found files and the command is executed for every file. However, if you want to run more than one command on the file or use the filename more than once in one command, you cannot do that:. Only one instance of `{}' is allowed within the command. Subscribe to: Posts (Atom).
dmatwork.blogspot.com
DM@Work: Developers vs Humans
http://dmatwork.blogspot.com/2014/04/developers-vs-humans.html
Thursday, April 3, 2014. The bits of modern desktop environments I sometimes see send me into the depths of despair. All familiar ways of modifying the system behaviour fail. No more scripts. No more pipes. No more rc-files. My monitor is usually rotated 90° clockwise. Books and magazines look better this way. To rotate the picture, I usually edit. The exact spell depends on the video card. Now, it says:. Xrandr - rotate left. By the way, the switch to Slim solved another problem. I never liked the d...
dmatwork.blogspot.com
DM@Work: June 2011
http://dmatwork.blogspot.com/2011_06_01_archive.html
Monday, June 27, 2011. Performing more than one search in one pass of 'find'. Is a utility that searches a directory tree for files matching complex conditions. The conditions may include file name, file type, creation/modification time, owner, permissions and others. Besides, you can define an action to be performed on the files that match your search criteria. When I have to run a number of searches, I usually do it sequentially, but the process may take too much time if the number of files.
dmatwork.blogspot.com
DM@Work: Getting rid of GUI password prompt in EasyPG
http://dmatwork.blogspot.com/2012/01/getting-rid-of-gui-password-prompt-in.html
Tuesday, January 3, 2012. Getting rid of GUI password prompt in EasyPG. Is a package used by GNU Emacs to simplify work with files encrypted by GnuPG (GPG). Extremely useful package, it has a bad habit of relying on external tools to prompt for the password. One of such tools is 'gpg-agent'. In Debian/Ubuntu this agent usually replaces 'ssh-agent'. It's a good tool, but it uses a GUI dialog to prompt for the password. This makes your work with EasyPG and Emacs rather uncomfortable.
dmatwork.blogspot.com
DM@Work: Extending HP SmartArray RAID array and expanding root file system using LVM
http://dmatwork.blogspot.com/2013/04/extending-hp-smartarray-raid-array-and.html
Monday, April 29, 2013. Extending HP SmartArray RAID array and expanding root file system using LVM. Not too ancient Linux distrubutions use LVM even when installed on RAID array ( I used to mistake LVM for RAID some time ago. Firstly, insert the new drives into the slots and then use. Utility to check that they are recognized now:. Hpacucli ctrl all config show. New drives should appear in the 'unassigned' section. Now, merge them into the existing array:. Hpacucli ctrl slot=1 ld 1 modify size=max.
dmatwork.blogspot.com
DM@Work: More than one 'exec' action in 'find' command
http://dmatwork.blogspot.com/2012/02/more-than-one-exec-action-in-find.html
Friday, February 17, 2012. More than one 'exec' action in 'find' command. Command, you can pass the names of the found files to an arbitrary command using. Find /tmp -mtime 3 -exec rm {} ;. The curly braces get replaced by the name of found files and the command is executed for every file. However, if you want to run more than one command on the file or use the filename more than once in one command, you cannot do that:. Only one instance of `{}' is allowed within the command.
dmatwork.blogspot.com
DM@Work: April 2011
http://dmatwork.blogspot.com/2011_04_01_archive.html
Wednesday, April 20, 2011. How to change default `umask' in Linux. File permissions for collaborative environment. Is a command and value that defines what permissions newly created files and directories will have. Had it not been for. Every file you create would have had permissions set to 666 (u=rw,g=rw,o=rw), and every directory would have had 777 (u=rwx,g=rwx,o=rwx). But the value of. Is subtracted from 666 and the difference is used as the permissions for the new file. Usually, the default. When thi...
dmatwork.blogspot.com
DM@Work: December 2011
http://dmatwork.blogspot.com/2011_12_01_archive.html
Wednesday, December 14, 2011. Discovered 'moreutils' package in Ubuntu. It features a list of nice tools, of which my favorite are 'ts', 'pee' and 'vipe'. Ts' puts timestamps to every line of text that is piped through it. Like,. I put them everywhere I can, it helps so much to find out later what was going on. 'ts' will certainly help me. Cat file.txt pee 'wc -c' 'wc -w' 'wc -l' 5870 257 257. Posted by Димитрий Фруктенштейн. Subscribe to: Posts (Atom). De Rebus Antiquis et Novis: Blog on Russian history.
dmatwork.blogspot.com
DM@Work: January 2012
http://dmatwork.blogspot.com/2012_01_01_archive.html
Tuesday, January 3, 2012. Getting rid of GUI password prompt in EasyPG. Is a package used by GNU Emacs to simplify work with files encrypted by GnuPG (GPG). Extremely useful package, it has a bad habit of relying on external tools to prompt for the password. One of such tools is 'gpg-agent'. In Debian/Ubuntu this agent usually replaces 'ssh-agent'. It's a good tool, but it uses a GUI dialog to prompt for the password. This makes your work with EasyPG and Emacs rather uncomfortable.
dmatwork.blogspot.com
DM@Work: April 2013
http://dmatwork.blogspot.com/2013_04_01_archive.html
Monday, April 29, 2013. Extending HP SmartArray RAID array and expanding root file system using LVM. Not too ancient Linux distrubutions use LVM even when installed on RAID array ( I used to mistake LVM for RAID some time ago. Firstly, insert the new drives into the slots and then use. Utility to check that they are recognized now:. Hpacucli ctrl all config show. New drives should appear in the 'unassigned' section. Now, merge them into the existing array:. Hpacucli ctrl slot=1 ld 1 modify size=max.