Basic Linux commands

We will now take a look at some of the Linux commands and their usage with respect to Android device:

  • ls: The ls command (with no option) lists files and directories present in the current directory. With the l switch, this command shows files and directories and their size, modified date and time, the owner of the file and its permission, and so on, as shown in the following command-line output:
shell@android:/ $ ls -ldr-xr-xr-x 64 root root 0 2018-09-16 13:21 acct -rw-r--r-- 1 root root 724 2018-07-31 17:54 adb_keys lrw-r--r-- 1 root root 11 2018-07-31 18:13 bin -> /system/bin lrw-r--r-- 1 root root 50 2018-07-31 18:13 bugreports -> /data/user_de/0/com.android.shell/files/bugreports drwxrwx--- 2 system cache 4096 ...

Get Learning Android Forensics - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.