- Community Home
- >
- HPE Community, Taiwan
- >
- HP-UX
- >
- 系統管理
- >
- 請問有支援 shell history 功能的工具嗎?
系統管理
1753562
會員
5971
線上
108796
解決方案
論壇
類別
Company
Local Language
返回
論壇
討論平台
返回
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
部落格
信息
社區語言
語言
論壇
部落格
文章選項
- 訂閱此主題的RSS 提要
- 將此主題標記為未讀
- 將主題標記為已讀
- 將主題在本帳號置頂
- 標示為書籤
- 訂閱此主題
- 列印此頁
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 01-11-2005 10:50 AM
在 01-11-2005 10:50 AM
請問有支援 shell history 功能的工具嗎?
HP-UX 有像是 bash 支援 shell history 的功能嗎?
就像是 DOS 下的 doskey 工具一樣,可以記憶前幾次輸入的 shell command ?
就像是 DOS 下的 doskey 工具一樣,可以記憶前幾次輸入的 shell command ?
3則回覆 3
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 01-11-2005 11:29 AM
在 01-11-2005 11:29 AM
請問有支援 shell history 功能的工具嗎?
如果你用的是KSH
root@SD /> ksh
# stty erase
# set o=vi
# whoami
root
# pwd
/
#
你可用set o=vi, 此行也可定義在.profile裡面, 然後你就可以使用ESC+K(往前), 或ESC+J(往後)切換使用過的指令.
root@SD /> ksh
# stty erase
# set o=vi
# whoami
root
# pwd
/
#
你可用set o=vi, 此行也可定義在.profile裡面, 然後你就可以使用ESC+K(往前), 或ESC+J(往後)切換使用過的指令.
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 01-11-2005 11:32 AM
在 01-11-2005 11:32 AM
請問有支援 shell history 功能的工具嗎?
剛剛忘了,
你也可以用`history`或`fc -l` 列出之前敲過的指令.
你也可以用`history`或`fc -l` 列出之前敲過的指令.
- 將文章標記為未讀
- 標示為書籤
- 訂閱此主題
- 靜音
- 訂閱此主題的RSS 提要
- 高亮顯示此文章
- 列印此文章
- 提報不當內容
在 01-11-2005 12:04 PM
在 01-11-2005 12:04 PM
請問有支援 shell history 功能的工具嗎?
Hi :
The posix shell (/usr/bin/sh) is the default luser's login shell.
Set up the follows in ~/.profile
EDITOR=vi
export EDITOR
will let you access the command buffer by vi syntax, such as ESC k for last line, ESC j for next line.
More environment can control the command history file, such as
HISTFILE for name of command history file.
HISTSIZE for the size of history file.
For more detail, please reference man page by
$ man sh-posix
..
.
The posix shell (/usr/bin/sh) is the default luser's login shell.
Set up the follows in ~/.profile
EDITOR=vi
export EDITOR
will let you access the command buffer by vi syntax, such as ESC k for last line, ESC j for next line.
More environment can control the command history file, such as
HISTFILE for name of command history file.
HISTSIZE for the size of history file.
For more detail, please reference man page by
$ man sh-posix
..
.
以上表述為作者個人觀點,不代表惠普公司,使用本網站,請遵守網站使用規則和條款
© 版权所有 2024 慧与发展有限责任合伙企业