Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Nov 2017, 11:03
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
"history" - shows commands used in terminal
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
labbe5

Joined: 13 Nov 2013
Posts: 1018
Location: Canada

PostPosted: Tue 14 Mar 2017, 15:59    Post subject:  "history" - shows commands used in terminal  

Here is a very useful command line : history.

It is a kind of Parcellite, but for terminal.

Type history in terminal, and all command lines used in a session will show. Just copy and paste lines to save time. It is truly a time-saver for long command lines.

Example :

I regularly use this command : firejail --private --dns=8.8.8.8 --dns=8.8.4.4 --caps.drop=all firefox -no-remote or this one : openvpn --config vpnbook-ca1-tcp443.ovpn --auth-no-cache --auth-user-pass vpn-login

Just copy and paste.

Further reading :
Basics of Using Bash History
http://www.putorius.net/2015/03/basics-of-using-bash-history.html

Last edited by labbe5 on Thu 12 Oct 2017, 09:58; edited 1 time in total
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 11170
Location: Gatineau (Qc), Canada

PostPosted: Tue 14 Mar 2017, 16:29    Post subject:  

labbe5?

You do know that all systems with bash have a < .bash_history > file,
don't you? To access previous commands you typed in your terminal, you
simply use the up-arrow. When you've found the one you want, you hit
the < Enter > key.

Also, to paste to terminal from anywhere, you hit the mouse middle button
where you want your string to appear on your terminal line. (Alternatively,
you can type < Shift-Enter >.)

Thanks anyway, but there is no real need for the utility you mention.

Best regards.

_________________
musher0
~~~~~~~~~~
"Logical entities must not be multiplied beyond necessity." | |
« Il ne faut pas multiplier les entités logiques sans nécessité. » (Ockham)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Utilities
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0363s ][ Queries: 14 (0.0073s) ][ GZIP on ]