when using the terminal (commandline) is there a way to store commands,
like a bookmark ? instead of re-typing them in, all the time.
Thanks, in Advance,
Richard
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
01-21-2008, 04:53 PM
Rene
Terminal Window
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Richard wrote:
> when using the terminal (commandline) is there a way to store commands,
> like a bookmark ? instead of re-typing them in, all the time.
>
try "history"
just type it in your commandline
and ARROW UP in the same session
> Thanks, in Advance,
> Richard
>
hope that will help
greetz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
01-21-2008, 04:56 PM
Rene
Terminal Window
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
sorry...another tip:
Try this: !mou
It will run the last command on your history that begins with mou
(maybe mount /mnt/cdrom). It's like Ms-DOS doskey when pressing F8.
All your last commands are stored on your home directory on a file
named: .bash_history
cat ~/.bash_history
How many commands are stored there? It's controlled by HISTSIZE
variable, to see it: export
To change it: export HISTSIZE=5000 to store 5000 commands.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
01-21-2008, 04:56 PM
"Wes Hegge"
Terminal Window
Several way I can think to do this.
First is history.* Linux keeps a history of your commands.* You can do 'history | grep <command>' this will give you a numbered list of previous commands.* You then can do '!<line #>' to execute that command again.
The other way is to use aliases.* This you would make in the .bashrc or whatever shell system you are using configuration's file is called. Here is an example: alias rm='rm -i'
So maybe something like: alias t_auth='tail -f /var/log/auth.log'
There has to be other ways too.* The great thing about the 2 above is that they do not rely on a specific terminal program or desktop environment.* They do rely on the user you are logging in as though.
Wes
On Jan 21, 2008 11:44 AM, Richard <cms0009@gmail.com> wrote:
when using the terminal (commandline) is there a way to store commands,
like a bookmark ? instead of re-typing them in, all the time.
Thanks, in Advance,
Richard
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
--
Wes Hegge
- If the phone rings. *Its not me.
-- Jimmy *Buffet
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
01-21-2008, 05:55 PM
"John DeCarlo"
Terminal Window
On Jan 21, 2008 12:56 PM, Wes Hegge <whegge@gmail.com> wrote:
Several way I can think to do this.
First is history.*
The other way is to use aliases.*
Another way is to write a script and put it in /usr/local/bin so everyone can use it.
I do this with complicated backups and the like.
--
John DeCarlo, My Views Are My Own
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
01-21-2008, 06:01 PM
"Jussi Schultink"
Terminal Window
On Jan 21, 2008 8:55 PM, John DeCarlo <johndecarlo@gmail.com> wrote:
> On Jan 21, 2008 12:56 PM, Wes Hegge <whegge@gmail.com> wrote:
>
> > Several way I can think to do this.
> >
> > First is history.
>
> >
> > The other way is to use aliases.
> >
>
> Another way is to write a script and put it in /usr/local/bin so everyone
> can use it.
>
> I do this with complicated backups and the like.
>
> --
> John DeCarlo, My Views Are My Own
> --
> kubuntu-users mailing list
> kubuntu-users@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
>
>
Also, the history is usually available through pressing the up arrow.
Jussi
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
01-21-2008, 07:28 PM
Nils Kassube
Terminal Window
Jussi Schultink wrote:
> Also, the history is usually available through pressing the up arrow.
And don't forget typing CTRL-R and some part of the command.
Nils
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
01-21-2008, 11:55 PM
Gianluca Cerminara
Terminal Window
Nils Kassube wrote:
> Jussi Schultink wrote:
>> Also, the history is usually available through pressing the up arrow.
>
> And don't forget typing CTRL-R and some part of the command.
>
>
> Nils
>
In the tcsh shell
ESC+P
will complete what you are typing with the last matching command in the
history.
Hope this helps,
G
--
kubuntu-users mailing list
kubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/kubuntu-users
04-16-2010, 11:16 AM
Basil Chupin
Terminal window
I stuffed up my earlier post by asking about Midnight Commander and not
about the Terminal I normally open it in because the Terminal and mc are
almost synonymous to me in the way I use both.
My intended question was: how do I make the *TERMINAL* open in full
screen mode and not as a small window (and then having to enlarge it)?
Whatever I have tried so far (click-drag to full page, maximising) is
ineffective and it always opens as a small window.
Anyone know how to make it behave? (Or is another one of those
ALT-something thingies..... :-) )
BC
--
I don't like water because of the things fish do in it.
W C Fields
--
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
04-16-2010, 11:27 AM
Liam Proven
Terminal window
On Fri, Apr 16, 2010 at 12:16 PM, Basil Chupin <blchupin@iinet.net.au> wrote:
> I stuffed up my earlier post by asking about Midnight Commander and not
> about the Terminal I normally open it in because the Terminal and mc are
> almost synonymous to me in the way I use both.
>
> My intended question was: how do I make the *TERMINAL* open in full
> screen mode and not as a small window (and then having to enlarge it)?
> Whatever I have tried so far (click-drag to full page, maximising) is
> ineffective and it always opens as a small window.
>
> Anyone know how to make it behave? (Or is another one of those
> ALT-something thingies..... :-) )
Leave it the size you want it when you shut down. It should remember
and reopen that size next time.
Or, just press Ctrl-Alt-1 to 6 and use the real text console.
> I don't like water because of the things fish do in it.
>
> Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â* Â*W C Fields
If you're going to claim to quote someone, don't bowdlerise the quote!
That's butchered and it's a travesty. Fields *actually* said: "I never
drink water; fish fuck in it" - which is far more amusing, not to
mention pithier by far.