Entries Tagged 'Linux' ↓

How to run screen as daemon?

Use this command:

$ screen -dmS screen_name command

How to replace text in many files?

perl -pi -w -e 's/source_text/destination_text/g;' *.php

Tip: Listing only directories using ls and grep

Just use small snippet:

$ ls -l | grep "^d"