1,012 reputation
5
bio website unixgarden.nl
location The Netherlands
age
visits member for 9 months
seen yesterday

Currently working as system administrator at Bizztravel B.V.. I've earned a bachelor degree in Computer Sciences. Since computing in general is my passion, I try to keep up with the latest development in this field. I'm active on irc.freenode.org and try to contribute to the open source community as much as I can.


1d
revised Remove Linux directories containing ONLY old files
edited body
1d
comment Remove Linux directories containing ONLY old files
Stephane, -mtime -180 does not indicate 180 days and older. It is rather from now to 180 days if I'm not mistaken.
1d
answered Remove Linux directories containing ONLY old files
2d
comment How can I get the version of the pgrep & pkill commands?
@Gabriel glad you solved it. -V, --version is mentioned in the man pgrep or man pkill
2d
comment How can I get the version of the pgrep & pkill commands?
Did you try -V ? :)
2d
comment what is the “System ID” of a LVM volume group
See the discussion at redhat.com/archives/linux-lvm/2006-October/msg00091.html.
Apr
15
comment SSH session through OpenVPN cuts off / locks up after a few lines
The comment was meant for ethrbunny.
Apr
15
comment SSH session through OpenVPN cuts off / locks up after a few lines
@AaronCopley ssh has a -T option. man ssh
Apr
14
comment Can I use grep matches to execute command? CentOS
rpm -qa does not need grep to be invoked. It accepts globbing as in rpm qa *php*. Also use yum instead as it will remove / reinstall necessary libraries
Apr
14
comment `ls -l` of a file and all the directories leading to it?
You can use awk's split. E.g awk '{split ($0,array,"/"); printf ("%s\n%s\n%s\n", array[1],array[2],array[3])}' or similar.
Apr
11
comment sed is not saving change until I manually open and save file in my editor via FTP
You can try something like for f in *.php; do sed '1{/^$/d}' -i "$f"; done. However, I strongly recommand using ex or ed
Apr
9
answered grep, display only files starting with . (hidden)
Apr
9
comment Highlight patterns in command output (grep-like but without excluding lines)
add an --color=always at the end of the line
Dec
6
comment Archlinux not configured with iptables
You need to run that as user root. Also you are better off running iptables-save
Nov
28
comment Show tail of files in a directory?
@chirp ls is perfectly fine for listing files and directories in combination with other flags. It is however not suited to be used in scripts because it's purpose is to make a human-readable listing. Also the OP doesn't mention it needs a script. That is the reason I used ls
Nov
28
comment Show tail of files in a directory?
@chirp in scripts you should not use ls indeed. In this case you can because the target is the human eye not the system.
Nov
28
comment How to interpret the “saddr” field of an audit log?
If the string doesn't change then e.g: echo "type=SOCKADDR msg=audit(1385638181.866:89758729): saddr=hex string" | awk -F= '/saddr/{print $NF}' would get the desired result.
Nov
28
comment Show tail of files in a directory?
It would be as easy as ls -l /path/to/dir | tail -n200
Nov
27
comment Remove all files created before a certain date
@user1058398 That will delete files older than 5 days from now.
Nov
27
answered Remove all files created before a certain date