.HISTORY 文件扩展名

Unix C Shell History

开发者 不适用
受欢迎程度
2.0  |  3 
 

什么是 HISTORY 文件?

A HISTORY file is a command history created by the Unix C Shell (csh) and its variants. It contains a list of commands the user has entered in the shell. HISTORY files always use the name .history.

更多信息

Csh and its variants typically create or update a HISTORY file every time a user exits (not closes) the shell. The shell saves a set amount of commands from the user's most recent session, depending on the settings the user has specified in set history and set savehist. Users can also manually save their history at any time by entering history -S in the shell.

If set savehist has been set to merge the user's current history with previous histories, the shell will add the current history to an existing HISTORY file. (The file's total command list will not exceed the set history setting; old commands are removed if necessary.) If set savehist is not set to merge, the shell overwrites the previous HISTORY file.

How to show command history in csh

To print the contents of your HISTORY file in csh, enter history. You can specify additional arguments that control how the history is printed, including:

  • -h: Print without leading numbers
  • -T: Print with timestamps
  • -h: Print from most recent to oldest
  • [#]: Print only # commands (for example, history 100 to print 100 commands)

常见 .HISTORY 文件名

.history - The default name csh and its variants assign to command histories.

如何打开 HISTORY 文件

Because HISTORY files are plain text files, you can open them and view their contents in any text editor. You can also use the history command to view your HISTORY file's contents in csh and its variants.

使用File Viewer Plus打开 400 多种文件格式。免费下载

可打开 HISTORY 文件的程序

Windows
操作系统自带
Mac
操作系统自带
Linux
FreeBSD C shell (and variants)
分类: 数据
更新时间: 2022-08-22

验证者 FileInfo.com

FileInfo.com 团队 独立研究了本页面列出的 Unix C Shell History 文件格式和 Mac, Windows, and Linux 应用。 我们的目标是达到 100% 的准确率,并且仅发布我们已验证过的文件类型信息。

如果您想为此页面提出新增或更新建议,请告诉我们