Archive for the 'Tips' Category
Wednesday, October 8th, 2008
A fairly common question is: How do I determine which applications are making network connections?
While there are different ways to do this, a quick solution is with netstat. To see which applications are connecting to which network addresses, run the following as root (if you are not root certain output is limited):
# netstat -tuap
This will […]
Posted in Miscellaneous, Tips | No Comments »
Friday, September 26th, 2008
This is something I’ve always thought about looking up myself. Great tip for using pv command for seeing copy progress.
Example:
$ cat source/file.img | pv -s 100g -p -e -r > destination/file.img
[ 25MB/s] [==========> ] 13% ETA 0:54:35
Only problem: what package in CentOS includes pv?
Posted in Miscellaneous, Tips | 2 Comments »
Monday, June 16th, 2008
Since upgrading to Fedora 9, I am trying much harder to work with SELinux. For the most part it is pretty easy.
I am using passwordless SSH logins between my CentOS 5.1 server and my Fedora 9 desktop. Since my Fedora 8 never used SELinux, all my file contexts were “wrong” when I mounted my /home […]
Posted in F9, Tips, Security | No Comments »
Saturday, May 24th, 2008
Sometimes I would find the need to archive just .files and .directories (e.g. .mozilla, .gnome). Unfortunately I would always manually do it.
Quick tip:
# ls -A | egrep ‘^\.’ | tar -cvf filename.tar -T -
(Thanks to LQ)
Posted in Miscellaneous, Tips | No Comments »