Since HP-UX using POSIX shell, the file name completion is different than Linux's.
To do a file name completion, simply press ESC and =
Example:
[ux]home/saya $ cd .s<ESC>=
1) .sh_history
2) .ssh/
[ux]home/saya $ cd .s
It will list down possible filename/directory available in the pwd. Note that a directory will have trailing char "/"
To find out which shell your using, simply type:
[ux]home/saya$ echo $SHELL
/sbin/sh
[ux]home/saya$Pathname Shell sh Bourne shell csh C shell tcsh TC shell ksh Korn shell bash Bourne Again SHell
--- Update 22 August 2007
Boleh jugak wat camnih (ESC twice):
[ux]home/saya$ cat abc<ESC><ESC>
[ux]home/saya$ cat abcdef.txt
saya suka makan nasik
[ux]home/saya$
Wednesday, August 1, 2007
File name completion in HP-UX
Posted by kapla.hodot at 11:08
Labels: UNIX/Linux Tips and Tricks
Subscribe to:
Post Comments (Atom)
1 comment:
bash pun bleh guna dedua cara ni
Post a Comment