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

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪(fǎng)問(wèn)板塊 發(fā)新帖
查看: 4588 | 回復(fù): 9
打印 上一主題 下一主題

[AIX] 問(wèn)一個(gè)簡(jiǎn)單又不記得了和問(wèn)題,關(guān)于history [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2002-03-14 05:18 |只看該作者 |倒序?yàn)g覽
怎么把AIX下的history 命今下能看到的記錄清空啊,對(duì)了還有我LOGIN后操作的一些命令會(huì)記錄在哪里呢???\r\nhelp me thanks

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2002-03-14 22:16 |只看該作者

Korn shell of course

Korn shell of course

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2002-03-14 22:28 |只看該作者
ksh : $HOME/.sh_history\r\nbash : $HOME/.bash_history

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2002-03-15 14:23 |只看該作者
why of course? \r\n\r\nif you are paranoid, do something like this:\r\n\r\nrm .sh_history\r\nln -s /dev/null .sh_history

論壇徽章:
0
5 [報(bào)告]
發(fā)表于 2002-03-15 22:38 |只看該作者

謝謝各位

找到了,可以把HISTORY空了,可是還有個(gè)問(wèn)題啊我怎么把這個(gè)值設(shè)小一點(diǎn)呢,例如要少記一點(diǎn)點(diǎn)了!

論壇徽章:
0
6 [報(bào)告]
發(fā)表于 2002-03-15 22:41 |只看該作者

OF COURSE

是因?yàn)锳IX默認(rèn)的一般都是KORN SHELL

論壇徽章:
0
7 [報(bào)告]
發(fā)表于 2002-03-16 04:14 |只看該作者
試一試這個(gè)變量: $HISTSIZE

論壇徽章:
0
8 [報(bào)告]
發(fā)表于 2002-03-16 04:39 |只看該作者
HISTSIZE環(huán)境變量用來(lái)指定記錄命令的條數(shù)。

論壇徽章:
0
9 [報(bào)告]
發(fā)表于 2002-03-19 02:45 |只看該作者

還是沒(méi)解決啊……

我才試了一下,好象這個(gè)什么HISTSIZE是LINUX下的吧,我記得以前用過(guò)……。\r\n可是AIX下好象沒(méi)什么用喲……:(

論壇徽章:
0
10 [報(bào)告]
發(fā)表于 2002-03-19 18:10 |只看該作者
[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ] \r\n--------------------------------------------------------------------------------\r\nCommands Reference, Volume 2 \r\n\r\n--------------------------------------------------------------------------------\r\n\r\nfc Command\r\nPurpose\r\nProcesses the command history list.\r\n\r\nSyntax \r\nTo Open an Editor to Modify and Reexecute Previously Entered Commands\r\nfc [ -r ] [ -e Editor ] [ First [ Last ] ]\r\n\r\nTo Generate a Listing of Previously Entered Commands\r\nfc -l [ -n ] [ -r ] [ First [ Last ] ]\r\n\r\nTo Reexecute a Previously Entered Command\r\nfc -s [ Old=New ] [ First ]\r\n\r\nDescription\r\nThe fc command displays the contents of your command history file or invokes an editor to modify and reexecutes commands previously entered in the shell.\r\n\r\nThe command history file lists commands by number. The first number in the list is selected arbitrarily. The relationship of a number to its command does not change except when the user logs in and no other process is accessing the list. In that case, the system resets the numbering to start the oldest retained command at 1. \r\n\r\nIf the numbers in the command history file reach a limit greater than the value of the HISTSIZE environment variable or 32767, whichever is greater, the shell wraps to 1. Despite this optional number wrapping, the fc command maintains the time-ordering sequence of the commands. For example, if three commands in sequence are given the numbers 32766, 32767, and 1 (wrapped), command 32767 is still considered previous to command 1.\r\n\r\nThe commands in the history file can be displayed using the -l (lowercase L) flag. When the -l flag is not specified and commands are edited using the -e Editor flag, the resulting lines are entered at the end of the history file and then reexecuted by the shell (the fc -e Editor command is not entered into the command history list). If the editor returns a non-zero exit status, this suppresses entry in the history file and command reexecution.\r\n\r\nAny command-line variable assignments or redirection operators used with the fc command again invoke the previous command, suppressing standard error for both the fc command and the previous command. For example:\r\n\r\nfc -s -- -1 2>/dev/null\r\nFlags\r\n-e Editor Edits commands using the specified editor. The Editor parameter should be a command name. The command is located using the PATH environment variable. The value in the FCEDIT environment variable is used as a default when the -e flag is not specified. If the FCEDIT environment variable is null or unset, the ed editor is used. \r\n-l (lowercase L) Lists the commands in your history file. No editor is invoked to modify them. The commands are written in the sequence indicated by the First and Last parameters, as affected by the -r flag, with each command preceded by the command number. \r\n-n Suppresses command numbers when used with the -l flag. \r\n-r Reverses the order of the commands listed (when used with the -l flag) or reverses the order of the commands edited (when the -l flag is not specified). \r\n-s Reexecutes a command without invoking an editor. If the First parameter is not also specified, the -s flag reexecutes the previous command. \r\n\r\nParameters\r\nFirst or Last Selects the commands to list or edit. The number of previous commands that can be accessed is determined by the value of the HISTSIZE environment variable. The First and Last parameters must have one of the following values: [+] Number Represents a specific command number. Command numbers can be displayed with the -l flag. A + (plus sign) is the default. \r\n-Number Represents a command that was previously executed, specified by the number of commands to back up in the history list. For example, -1 indicates the immediately previous command. \r\nString Indicates the most recently entered command that begins with the specified string. If the Old=New parameter is specified without the -s flag, the string from the First parameter cannot contain an embedded = (equal sign). \r\n\r\nWhen using the -s flag, omission of the First parameter causes the previous command to be used.\r\n \r\n\r\nWhen the -s flag is not specified, the following rules apply:\r\n\r\nWhen using the -l flag, omission of the Last parameter causes a default to the previous command. \r\nWhen using the -r, -n, and -e flags, omission of the Last parameter causes a default to the First parameter. \r\nIf both the First and Last parameters are omitted, the previous 16 commands are listed or the previous single command is edited (depending on whether or not the -l flag is used). \r\nIf both the First and Last parameters are present, all commands are listed (when the -l flag is specified ) or edited (when the -l flag is not specified). Editing multiple commands is accomplished by presenting to the editor all the commands at one time, each command starting on a new line. If the First parameter represents a newer command than the Last parameter, the commands are listed or edited in reverse sequence. This is equivalent to using the -r flag. For example, the following commands on the first line are equivalent to the corresponding commands on the second line: \r\nfc  -r  10  20           fc      30  40\r\nfc      20  10           fc  -r  40  30\r\nWhen a range of commands is used, it is not an error to specify First or Last values that are not in the history list. The fc command substitutes the value representing the oldest or newest command in the list, as appropriate. For example, if there are only ten commands in the history list, numbered 1 to 10, the commands: \r\nfc  -l\r\nfc   1   99\r\nlist and edit, respectively, all ten commands.\r\nOld=New In commands to be reexecuted, replaces the fist occurrence of the old string with the new string. \r\n\r\nEnvironment Variables\r\n\r\nThe following environment variables affect the execution of the fc command:\r\n\r\nFCEDIT When expanded by the shell, determines the default value for the -e editor variable. If the FCEDIT environment variable is null or is not set, the ed editor is the default. \r\nHISTFILE Determines the path name of the command history file. If the HISTFILE environment variable is not set, the shell may attempt to access or create the .sh_history file in the user\'s home directory. \r\nHISTSIZE Determines a decimal number representing the limit to the number of previous commands that are accessible. If this variable is not set, a default value of128 is used. \r\n\r\nExit Status\r\nThe following exit values are returned:\r\n\r\n0 Successful completion of the listing. \r\n>0 An error occurred. \r\n\r\nOtherwise, the exit status is that of the commands executed by the fc command.\r\n\r\nExamples\r\nTo invoke the editor defined by the FCEDIT environment variable on the most recent command (the default editor is /usr/bin/ed), enter: \r\nfc\r\nThe command is executed when you finish editing. \r\nTo list the previous two commands that were executed, enter: \r\nfc -l -2\r\nTo find the command that starts with cc, change foo to bar, and display and execute the command, enter: \r\nfc -s foo=bar cc\r\nFiles\r\n/usr/bin/ksh Contains the Korn shell fc built-in command. \r\n/usr/bin/fc Contains the fc command. \r\n\r\nRelated Information\r\nThe ksh command.\r\n\r\n\r\n--------------------------------------------------------------------------------\r\n\r\n[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專(zhuān)區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP