Given commands were created as 0 byte files

I were checking few processes running and check what at the files currently I have in my home directory by giving below commands

$  ps -ef|grep sleep
$ ls -lt | pg

after awhile the first column of my commands were created as files given below...

-rw-rw-rw-   1 prd           0 Mar 25 09:42 ls
-rw-rw-rw-   1 prd           0 Mar 25 09:41 ps

I could not figure it out how on earth this happened?:wall: I'm pretty sure that I did not create these files...

Any help on this would save my day (this happened in my production box)

I really don't think you created them with that commandline. Those files look like they were created 3 days ago, besides.

what gives

alias

??

what gives

\ps -ef|grep sleep
\ls -lt | pg

??

yes, it was created last friday when I did my routine checks... any idea how these were created?

---------- Post updated at 12:44 PM ---------- Previous update was at 12:22 PM ----------

this is what I get when I give alias

autoload='typeset -fu'
command='command '
functions='typeset -f'
grep=/usr/bin/grep
hash='alias -t -'
history='fc -l'
integer='typeset -i'
local=typeset
logoff=/usr/local/bin/logoff
logout=/usr/local/bin/logoff
nohup='nohup '
r='fc -e -'
stop='kill -STOP'
suspend='if [[ ${0#-} = $0 ]] ; then kill -STOP $$; else dspmsg -s 1 ksh.cat 501 "suspend: cannot suspend login shell"; fi '
type='whence -v'

You probably have typed those commands like:

> ls
> ps

I didn't give it as

> ps
> ls

I'm sure that I just typed the commands.

As stated by Franklin, it is more than likely an erroneous copy/paste.
by the way since those file are useless and empty, i think you should just remove them.

I did removed it... as you said it should be a err while copy/pasting somehow... I have to recollect what I did on that day and come to a conclusion...

Anyways, thanks guys for your help. I appreciate it.