Category: OS X

  • Add Virtual Host On OS X

    Add Virtual Host folder into apache config file by editing terminal command; sudo nano /etc/apache2/extra/httpd-vhosts.conf Like; <VirtualHost *:80> ServerName myproject.dev ServerAlias www.myproject.dev DocumentRoot “/Users/USERNAME/Sites/myproject” ErrorLog “/private/var/log/apache2/mypriject.dev-error_log” CustomLog “/private/var/log/apache2/myproject.dev-access_log” common ServerAdmin web@somedomain.com </VirtualHost> Save document, exit.

  • Bulk Image Resize By Using OS X Terminal Command

    Mac OS X some times fascinating me! Isn’t it fantastic to able to resize a folder of image (jpg, png etc.) with a single line of command!?

  • OS X Top Essential Terminal Commands

    Rename a file or folder via command line mv oldName newName   Remove directory with files rm -rf dir_name_to_delete -r “recursive” -f “force” (suppress confirmation messages)   See hidden files in directory ls -a ls: “Directory listing”,  -a:”Show with hidden files/folders” -l:”vertical detailed list view”   Delete the content of your app/cache and app/logs folders rm…

  • How to Customize your Terminal Prompt On OS X Yosemite 10.10

    How to Customize your Terminal Prompt On OS X Yosemite 10.10

    Edit your .bash_profile with terminal command below; nano .bash_profile Add this line: export PS1=”(emoji) \W (emoji) $ ” (emoji) you can simply drag and drop the emoji into the text line.

  • Add a File Extension in a Folder with OS X Terminal Application

    If you need to add file extension for hundred of file in a folder this terminal command will save your life.

  • How to find the serial port number on Mac OS X?

    How to find the serial port number on Mac OS X?

    To find find your serial port list; It’s a build-in method in Mac OS X to find all ports with a terminal command.