10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hello all
i have application which according to AWS monitoring is reaching to high spikes of IO at random time .
and causing the server to crash and restart .
my question is how can i find out what cause the spike and if i can't with the native linux tools
what free open source minimon... (6 Replies)
Discussion started by: umen
6 Replies
2. AIX
i connect an ibm ultrium lto 5 (sas) to an 8204-e8a (v6.1 TL5 SP 1)
then i do an cfgmgr and get message about missing filesets
devices.pciex.1410ca03
devices.pciex.pciexclass.00107
devices.pciex.00107200
devices.pciex.pciex100.72.3
and a few others
i try to find the filesets on the two OS... (1 Reply)
Discussion started by: AIXBlueCat
1 Replies
3. Shell Programming and Scripting
I am trying to cleanup a directory with around 4000 files, and using the below command to delete all .gz files older than 60 days, I am having the same issue of arguments being too long. is there a way i can use the same command to do what I intend to do.
find /opt/et/logs/Archive/*.log.*.gz... (4 Replies)
Discussion started by: Shellslave
4 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I've been stuck on this problem for 2 days now
What command would you enter to list the first lines of all text... (11 Replies)
Discussion started by: partieboi37
11 Replies
5. UNIX for Dummies Questions & Answers
Hi friends,
I am unable to find the .sh_history file on my PC.
This files contains the log of all commands typed by the users.
I searched it also , but no results.
Please help me :(, where to find it . Or is there anything else to do to set the history file. (6 Replies)
Discussion started by: paras.oriental
6 Replies
6. Shell Programming and Scripting
Hi - Can anyone help me to get the shell script for the below scenario
I need to find out the time stamps history for the files residing within the subfolders. Ex..
Let say I got directory structure like
/home/project1/ -- Fixed directory
Now within the project there are many... (1 Reply)
Discussion started by: pankaj80
1 Replies
7. UNIX for Dummies Questions & Answers
i have lots of files in /law/prod and /law/dev, such as AP20PD, AP20WS, AP20.scr, AP20.rpt
if i am in /law DIR
find . -name AP20PD, found in /law/prod and /law/dev
i want to head -1 AP20PD from both location and >> /tmp/test.log
can i use find and head in one line ?
----------... (1 Reply)
Discussion started by: tjmannonline
1 Replies
8. AIX
I have 2 servers in my office which are p570 and p550. Both run under AIX 5300-07. And I only have 1 x SCSI Ultrium LTO3 Tape Drive. For syncronization purposes, I always backup p570 server's database and restore into p550 server.
And due to the frequent process of syncronization, I require to... (1 Reply)
Discussion started by: kwliew999
1 Replies
9. UNIX for Advanced & Expert Users
ctr+R is used to search bash history reversely, How to get next match? just like N in vi search. (1 Reply)
Discussion started by: honglus
1 Replies
10. AIX
Hello world
I would to know the age of utrium tape ?
How many time i can use one tape ????
THank you all (2 Replies)
Discussion started by: mktahar
2 Replies
history(n) Tcl Built-In Commands history(n)
__________________________________________________________________________________________________________________________________________________
NAME
history - Manipulate the history list
SYNOPSIS
history ?option? ?arg arg ...?
_________________________________________________________________
DESCRIPTION
The history command performs one of several operations related to recently-executed commands recorded in a history list. Each of these
recorded commands is referred to as an "event". When specifying an event to the history command, the following forms may be used:
[1] A number: if positive, it refers to the event with that number (all events are numbered starting at 1). If the number is negative,
it selects an event relative to the current event (-1 refers to the previous event, -2 to the one before that, and so on). Event 0
refers to the current event.
[2] A string: selects the most recent event that matches the string. An event is considered to match the string either if the string
is the same as the first characters of the event, or if the string matches the event in the sense of the string match command.
The history command can take any of the following forms:
history
Same as history info, described below.
history add command ?exec?
Adds the command argument to the history list as a new event. If exec is specified (or abbreviated) then the command is also exe-
cuted and its result is returned. If exec is not specified then an empty string is returned as result.
history change newValue ?event?
Replaces the value recorded for an event with newValue. Event specifies the event to replace, and defaults to the current event
(not event -1). This command is intended for use in commands that implement new forms of history substitution and wish to replace
the current event (which invokes the substitution) with the command created through substitution. The return value is an empty
string.
history clear
Erase the history list. The current keep limit is retained. The history event numbers are reset.
history event ?event?
Returns the value of the event given by event. Event defaults to -1.
history info ?count?
Returns a formatted string (intended for humans to read) giving the event number and contents for each of the events in the history
list except the current event. If count is specified then only the most recent count events are returned.
history keep ?count?
This command may be used to change the size of the history list to count events. Initially, 20 events are retained in the history
list. If count is not specified, the current keep limit is returned.
history nextid
Returns the number of the next event to be recorded in the history list. It is useful for things like printing the event number in
command-line prompts.
history redo ?event?
Re-executes the command indicated by event and returns its result. Event defaults to -1. This command results in history revision:
see below for details.
HISTORY REVISION
Pre-8.0 Tcl had a complex history revision mechanism. The current mechanism is more limited, and the old history operations substitute and
words have been removed. (As a consolation, the clear operation was added.)
The history option redo results in much simpler "history revision". When this option is invoked then the most recent event is modified to
eliminate the history command and replace it with the result of the history command. If you want to redo an event without modifying his-
tory, then use the event operation to retrieve some event, and the add operation to add it to history and execute it.
KEYWORDS
event, history, record
Tcl history(n)