Originally Posted by pan64
why do you need any script? ls -l will automatically displayed on the current terminal.
Probably you mean ls -l >/dev/tty.
Ok i got it, there was a little confusion like if i am changing terminals and running the script, will it work but now its clear. Thanks