← Back to team overview

ubuntu-phone team mailing list archive

Re: Terminal Users - a question

 

Hi Alan,

1. Run this command on your phone (ie. via adb shell, phablet-shell or
if you're a complete masochist, type it manually in the terminal).
Please don't run it directly on your desktop, we're currently wanting
commands you type on the device.

history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq
-c | sort -n | tail | sort -nr

(this lists out the top 10 commands from your bash history, sorted by
most frequently run)

For me this command still returns the commands I run using adb shell.
I did the following:

nikwen@nikwen:~$ adb shell
phablet@ubuntu-phablet:~$ history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -n | tail | sort -nr
   222 ls
   195 cd
    77 exit
    68 sudo
    63 cat
    43 tail
    43 rm
    24 restart
    21 mv
    18 tar

I'm sure I've never run tar and tail on my device itself.
Do you know what's wrong here?


Cheers,
Niklas

Follow ups

References