Posts

Showing posts with the label unix

Unix: finding big folders

How to find the folders which are consuming much diskspace. It's easy using du: du -k | sort -nr | pg And the bigist folders will be on top of the list.

Unix Performance Management

Today I was with one of our customers and we ran into a performance issue. The first request to a remote procedure call took 15 seconds extra time. Uptill now we could't figure out wat the cause was of this performance problem but these two tools could be very usefull for measuring things on OS level. Viewing the memory statistics every 5 sec: vmstat 5 Disk I/O statistics every 5 sec: iostat -Ds 5

Sun Solaris

Which version of MySql do I need to download for this sun solaris machine? To get an answer to this question the following commands can be very usefull: Revision info for hard- and software: showrev Detailed processor info: prsinfo -v Instruction set supported by the machine: isainfo -v

Spaces in filenames

Today's desktop users are familiar with filenames including spaces. The hell begins when those users can store files on a unix server using a windows desktop. This morning I had to change the permissions of a bunch of files on solaris. Normally i would just type in the command and run it .... but NOT this morning. A lot of files which i had to access contained spaces pffff. The unix shell is very powerfull ... so I knew there was a simple solution. I am just writing it down here so you can use it in the future: find . -type d | sed -e 's/ /\\ /g' | xargs sudo chmod 777