Jason | 24th October 2013
CentOS 6.4 Here’s a few very quick and basic commands to do things with files via the terminal. These can be vastly improved upon; please comment if you have better methods for this. Basic commands 123456// view the first 25 lines in a file $ head -25 filename.sql // view the last 25 lines in […]
Jason | 21st July 2013
MySQL terminal We are going to create a new database, user and password and grant that user access to the new database. Let’s first login to MySQL in the terminal. 1$ mysql -uadmin -ppassword Hit return and that will log you in, provided your credentials are valid! Note that there is no gap after the […]
Jason | 3rd December 2012
Mac OS X (10.6.8) From terminal, we can execute a bash script easily. 1$ /Users/jason/Sites/scripts/myscript.sh That works fine, obviously, but it would be soooo cool if we could just call myscript from any location or folder. From terminal, we do the following. Switch to the current user’s root. 1$ cd ~/ Add the script path […]
Please fill out the form below and I will reply ASAP. I aim to answer all emails in 48 hours or less.