Tuesday, December 30, 2014

Mac & linux basic terminal command cheat sheet

hostname
Computers network name

pwd
Present working directory

cd
Change directory

mkdir
Makes a directory

ls
List directory

find
Find files

rmdir
Removes directory

cp
Copy file or directory

pushd
Push directory

popd
Pop directory

cat
To see the contents of file

less
To see the less contents of file

grep
To find the occurrence of string in files

env
To find the current environment details.

man
To read a manual page

approps
To find what man page is appropriate

echo
To print some characters

chown
To change the owner of a file

chmod
To change permissions of a file

sudo
To become super user

exit
To exit shell

Saturday, December 13, 2014

Install a apk on AVD


  • Launch the AVD
  • Go to terminal/command prompt
  • Make CD to android-sdk/tools
  • Input the following command
  • Windows:adb install fileName.apk
  • OSx:./adb install fileName.apk