chown – change owner of a file or folder

chown - change owner of a file or folder

Syntax:chown <new owner>(:<new group>) <file/directory> Explanation:chown is an abbreviation for change owner.With chown you can change the owner of a certain file or folder. Examples chown john myfile.txt  Change the owner of the file “myfile.txt” to the user called “john”. chown john:group2 myfile.txt  Change the owner and group membership

Read More chown – change owner of a file or folder

Ping an IP address or hostname in the Terminal for Mac OS X

Ping an IP address or hostname in the Terminal for Mac OS X

Syntax:ping [-Options] <ip/hostname> Usage:Ping’s an IP-address or a hostname (which can be used to troubleshoot connection problems to another computer or a server). Options -c <num> Stop after sending and receiving <num> number of packets. -f Flood ping: Flood ping, output packets as

Read More Ping an IP address or hostname in the Terminal for Mac OS X

Post tweets directly from the Terminal in Mac OS X using cURL

Post tweets directly from the Terminal in Mac OS X using cURL

If you have a Twitter account and is behind a Mac you can easily post new Tweets from the Terminal without having to login on their website. To achieve this we’re using the in-built function in Mac called cURL. cURLcURL is an inbuilt tool

Read More Post tweets directly from the Terminal in Mac OS X using cURL

System info and preferences from the Terminal in Mac OS X

System info and preferences from the Terminal in Mac OS X

sw_vers Syntax:sw_vers Explanation:Displays a system summary of your Mac. system_profiler Syntax:system_profiler [-Options or Type(s)] Usage/Explanation:Displayed detailed information about your Mac including the hardware. Options -detailLevel <lvl> Decide how detailed the description will be. <lvl> can be mini, basic or full. -listDataTypes Displays all available categories (as specified below).

Read More System info and preferences from the Terminal in Mac OS X