11/23/2013 - 5:29 PM

find tar sed pagespeed grep kill find process

find tar sed pagespeed grep kill find process

ps axf | grep php

UNIX- replace newline in file with space
sed '{:q;N;s/\n//g;t q}' /path/to/data.txt > newfile

find . -type f -name 'ic_webservices_productdownload*'
 find . -type f -name 'ic_webservices_productdownload*' -exec rm -f {} \;

 grep -ir "ajax." /tmp/archive/*

grep -r -i 'string-to-search' path

tar -zcvpf ./teste.tar.gz --exclude=file *

find . -type f -depth -3 -mtime -5

Find directory by name with wildcard.
find / -type d -name "ora10*"

vi /etc/httpd/conf.d/pagespeed.conf
change ModPagespeed to off

find all empty directory in path and print /delete them
find . -type d -empty -print
find . -type d -empty -delete

root@raspberrypi:/code# lsusb
Bus 001 Device 007: ID 04b0:019f Nikon Corp.
Bus 001 Device 006: ID 1a2c:2d43 China Resource Semico Co., Ltd
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub