Everyday handy terminal commands
List of commands used every day.
- man openssl ,or man whichever terminal command with which additional help is needed, q to quit, this is standard unix, but it bears mention here.
- cntrl-C ,to cease a terminal operation immediately.
- java -version
- php -version
- which php ,which <binary application of interest> displays full path including name
- ifconfig ,for a listing of network interfaces
- sudo tcpdump -vv -i en1 ,where en1 is the interface of interest from ifconfig
- whoami ,verify the logged in username
- ssh "<username>@xxx.xxx.xxx.xxx" be sure to include the quotes
- scp /devel/lakedata/clients/DC_webportalmaster.com/site-backup/webportalmaster.com_2009.05.05_16.57.gz root@xx.xx.xx.xx:/var/lib/psa/dumps/1/11/ scp is secure copy which uses an ssh connection, the above copies a local file to an online server at ip of xx.xx.xx.xx
