![]() |
2010-08-10
, 11:43
|
Posts: 162 |
Thanked: 52 times |
Joined on Feb 2010
|
#2
|
![]() |
2010-08-10
, 11:46
|
|
Posts: 549 |
Thanked: 299 times |
Joined on Jun 2010
@ Australian in the Philippines
|
#3
|
![]() |
2010-08-10
, 12:15
|
|
Posts: 1,210 |
Thanked: 597 times |
Joined on Apr 2010
@ hamburg,germany
|
#4
|
![]() |
2010-08-10
, 15:15
|
Posts: 284 |
Thanked: 74 times |
Joined on Mar 2010
@ Wigan, UK
|
#5
|
![]() |
2010-08-10
, 15:34
|
|
Posts: 128 |
Thanked: 46 times |
Joined on Mar 2010
@ Switzerland
|
#6
|
![]() |
2010-08-10
, 15:37
|
Posts: 486 |
Thanked: 251 times |
Joined on Oct 2009
|
#7
|
If you type 'history' (without the quotes) in your x-term, it'll pop up a list of the last 500 commands you've attempted to execute. Each one is numbered.
Say you scroll back in the list a bit and you see psx4m is number 437, in your x-term simply type:
!437 (and hit enter)
It'll run that command.
You can also create aliases in your shell config file - for bash it's .bashrc (if you are root), for the 'user' account I believe you can use .profile - though don't quote me on that : )
The Following User Says Thank You to j.s For This Useful Post: | ||
![]() |
2010-08-11
, 09:41
|
|
Posts: 549 |
Thanked: 299 times |
Joined on Jun 2010
@ Australian in the Philippines
|
#8
|
Once ive run a command in xterm it sometimes remembers previous commands and when i open xterm and keep pressing the up key it shows a few previous commands.What can i type so it remembers a specific command when i open xterm?
e.g im running psx4m but it doesnt seem to keep that specific command in memory after running psx4m and closing xterm.
Any help appreciated