亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

Chinaunix

標題: HP-UX POSIX shell history命令使用問題 [打印本頁]

作者: 蜈蚣    時間: 2003-12-18 10:38
標題: HP-UX POSIX shell history命令使用問題
當前環(huán)境是POSXI SHELL
操作如下:
/(root)#history
sh: fc: Cannot access or open the history file.
切換到KSH,history命令沒有問題。
請問這個history file是哪個文件。
謝謝大家了
作者: mazu    時間: 2003-12-18 16:00
標題: HP-UX POSIX shell history命令使用問題
root用戶下好像不能查看歷史吧
普通用戶下應(yīng)該有個.sh_history文件
作者: 蜈蚣    時間: 2003-12-18 16:39
標題: HP-UX POSIX shell history命令使用問題
[quote]原帖由 \"spline\"]Esc + K[/quote 發(fā)表:

root 在KSH下,可以使用Esc +K
普通用戶在POSIX SHELL 下也可以用history,
在/下面也有.sh_history
作者: beyond_wyc    時間: 2008-01-08 10:25
標題: I have same problem!
如果你用的是KSH

root@SD /> ksh
# stty erase
# set o=vi
# whoami
root
# pwd
/
#

你可用set o=vi, 此行也可定義在.profile裡面, 然後你就可以使用ESC+K(往前), 或ESC+J(往後)切換使用過的指令.

你也可以用`history`或`fc -l` 列出之前敲過的指令


Re:請問有支援 shell history 功能的工具嗎?   
Monday, January 10, 2005 2:04:07 PM   解決我全部的問題
--------------------------------------------------------------------------------
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
作者: beyond_wyc    時間: 2008-01-08 10:36
不僅要看歷史命令的名稱,還看其執(zhí)行用戶和執(zhí)行時間,是否可做到?
作者: sway2004009    時間: 2008-01-09 13:58
可以被自定義。
可以check一下所有的.profile 或者其他啟動腳本里面,有沒有對histfile進行設(shè)置。

看看用戶目錄下面有沒有hist字符命名的文件




歡迎光臨 Chinaunix (http://72891.cn/) Powered by Discuz! X3.2