Categories
GNU/Linux

Check open ports on Linux Server

How to check the open ports on your linux server netstat -lnp

Categories
GNU/Linux

How to backup hard drive with a live cd

Linux: How to backup with a live cd So you’ve booted from your livecd and are in a unix styled terminal… cd /media #mount source of backup sudo mkdir src sudo mount /dev/sda1 src $mount sink of backup #sudo mkdir sink sudo mount /dev/sdb1 sink cp -Rdp src/* sink/.

Categories
GNU/Linux

Copy Files with specific extension from multiple directories into a single directory Linux

How to Copy Files with specific extension from multiple directories into a single directory Linux find . -type f -print0 | xargs -0 cp -t /home/my/dir/ The only problem is file name conflicts…hmmm how to solve?

Categories
GNU/Linux

What is the default php includes path on linux?

This post specifies the default php includes path on a linux distribution. The one I used was gentoo. This is the path that will be globally included in all your php projects. It is: include_path = “.:/usr/share/php5:/usr/share/php” If you want to change this path, just change the above line in php.ini and restart apache or […]

Categories
GNU/Linux

Glob Patterns

man 7 glob Glob Patterns: Globbing Pathnames Long ago, in Unix V6, the was a program /etc/glob that would expand wildcard patterns.Soon it was built into shell and bash. Glob (Wildcard) Matching A string is a wildcard pattern if it contains one of the characters: ?  *  [ Globbing is the operation that expands a […]