Re: How to find your shell



On Thu, Apr 28, 2005 at 10:09:20AM +0200, stian nixia no wrote:
> Don't make it any harder than needed :-p
> 
> # ls -l /proc/self/exe
> 
> That will show where the current shell executable file is located, and
> hence its name.

ben elsa:~$ uname -s -r
Linux 2.6.8
ben elsa:~$ ls -l /proc/self/exe
lrwxrwxrwx  1 ben ben 0 Apr 28 09:24 /proc/self/exe -> /bin/ls




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]