IconIcon

Tuesday 16 September 2014

How to use console in Android devices?




Welcome to techntips.net

You may have used command prompt in windows or terminal in linux. Today I am going to teach you how you can use console in Android devices.
Android is a handheld operating system which is found on almost every smartphones.
Every operating has its console, whether it is hidden or not.



First you need to install- Android Terminal Emulator from Google Play.

Now start terminal in android and type any of below command in console.

List of Android terminal/console commands:--

   1. ls -- This will list all files and folders in current
         working directory


    2.  cat – Read/show file content.
    Syntax:--   cat  <filename>
    Example:--  cat    niah.txt

   3.  cd – It    is used to change current working
          directory or go to other directory.
Syntax:--  cd  <folder_path>
Example:-- cd    myfolder


   4.  cp--   It is used to copy a file.
  Syntax:-- cp   <source>   <destination>
Example:-- cp    old.txt    new.txt


   5.   exit—Exits the terminal/console.

   6.   mv – This command is used to Move a file.
          Syntax:-- mv  <source>    <target>
       Example:-- mv movie.mp4     sdcard/movies/

   7.   date --  This command is used to show date and time.

   8. mkdir--This command is used to create folder
            Syntax:--  mkdir       <target>
            Example:--  mkdir   myfolder

   9.   top – This command will show a list of
processes which are used more resources.

   10.                 rm – This command is used to delete file.
            Syntax:-- rm        <target>
           Example:--  rm     niah.txt
   11.                 reboot – This command will reboot your phone

   12.                 echo – This command is used to show any text in console.

Syntax:-- echo <text to show>
Example:-- echo   hello   dude

   13.                 pwd – This command will print current working directory.

I hope you have enjoyed reading this post.
Subscribe us to get all updates in your email for free.

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...