list files recursively
// list files recursively using ls
while searching for files
ls -R
while searching for files
ls -R | grep 'searchterm'
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
ls -R
ls -R | grep 'searchterm'
:%s'\(<stuff_to_find>\)'\1<new_stuff>'gc
ln -s /full/dir/path/to_files /full/dir/path/destination
update-rc.d updatedb_start stop 18 6 .
logger This is my message to syslog
<?php $link = mysql_connect('localhost','mydbuser','mydbpassword'); if (!$link) { die('Could not connect to MySQL: ' . mysql_error()); } echo 'mySql Connection OK'; mysql_close($link); $dbh = new PDO('mysql:host=localhost;dbname=test','mydbuser','mydbpassword'); if ($dbh) { echo 'mysql_pdo CONNECTION OK'; } else {echo 'mysql_pdo ERROR';} ?>
sudo passwd root
crontab -e
postsuper -d ALL deferred
shutdown -rf +1 "Scheduled test of system reboot"