SSH Reference Manual
Possible values for HISTORYMODE are SFTP (the default value) and TACL. If HISTORYMODE is set to TACL the 
history list behaves like the one in TACL. 
The following table explains the differences between HISTORYMODE SFTP and TACL: 
FC/HISTORY differences depending on 
HISTORYMODE setting 
HISTORYMODE SFTP  HISTORYMODE TACL 
Commands added to the history list  All commands but help, history, fc and "!"  All commands but fc and "!" 
Default count for history command display  20  10 
Handling of duplicate commands 
Only the last of duplicate commands stays in 
list 
Duplicate commands are added 
Command number change 
Command numbers change whenever an 
old, duplicate command is moved to the top 
Command number assigned to a 
command stays the same until the 
command drops out of the history 
list 
Match of string supplied as parameter to FC 
and HISTORY command 
A string matches anywhere in a command 
line 
A string must match the beginning 
of a command 
Fix Command 
The FC command (fix command) allows retrieving one of the history commands either by number or by string matching.  
If a number is specified, then the corresponding command is retrieved and can be modified using standard fix command 
modifications via R, D and I (see “Guardian Procedure Calls Reference Manual”, section FIXSTRING for details). 
sftp> fc 2 
 get file678 
... d//i5 
 get fle5678 
... r4// 9 
 get fl456789 
... 
Couldn't stat remote file: No such file or directory 
File "/G/data1/reports/fl456789" not found. 
sftp> 
If the FC command is followed by a negative number, then the corresponding command relative to the end of the history 
list is selected (-1 equates to last command, -2 equates to next-to-last command, etc.): 
sftp> history 
 1> cd $data1.reports 
 2> dir 
 3> get file1 
 4> get file2 
 5> get file3 
 6> get file4 
sftp> fc -3 
 get file2 
...// 
sftp> 
If a string is specified, then the corresponding command is retrieved using string matching, i.e. the last command 
containing the given string is retrieved and can be modified and executed. 
sftp> fc rep 
 cd $data1.reports 
... 1 
 cd $data1.report1 
... 
sftp> pwd 
Remote working directory: /G/data1/report1 
sftp> 
HP NonStop SSH Reference Manual  SSH and SFTP Client Reference • 237 










