Quantcast
Channel: Joar » cli
Browsing latest articles
Browse All 5 View Live

How much ram in my graphics card ?

Nice command to find how much ram my graphics card has. Use ‘lspci’ to get the pci id and throw it back to lspci like this: joar@juno:~$ lspci | grep VGA 00:02.0 VGA compatible controller: Intel...

View Article



Testing read/write speed of disks

Upon testing the performance of a raid 6 array with 13 disks i wanted to check read/write performance, an easy way to do this fast on Linux (Debian) is simply using ‘time’ and ‘dd’:...

View Article

Had an ulimit problem

I’m optimizing some scripts that split our apache logs each night. I gotta admit Apache’s ‘split-logfile’ script written in perl is a LOT faster than doing it via f.example bash . But splitting up a...

View Article

Change default shell for several users

chsh is great when you need to change default login shell for a lot of users. Something like: for f in $(grep home /etc/passwd | grep -v ftp | cut -d':' -f1) ; do chsh -s /bin/sh $f ; done You would of...

View Article

‘watch’ cmd in FreeBSD

FreeBSD got a builtin (part of ‘world’) command watch, so if you’re looking for the equivalent of the Linux watch command try ‘cmdwatch .

View Article

Browsing latest articles
Browse All 5 View Live


Latest Images