Welcome to World of IPTV

With

+23k members
+11k threads
+106k posts

we are the most popular IPTV community on the web. 

IMPORTANT NOTE:
WE HAVE RECENTLY NOTICED THAT TOO MANY DOUBLE FAKE ACCOUNTS ARE CREATED IN THE PAST.
TO PREVENT THIS ISSUE THE DECISION WAS MADE THAT IN THE FUTURE A ANNUALLY FEE 20 EURO WILL BE RAISED FOR NEW MEMBERSHIPS.

Join now to the World of IPTV

Forum Rules

Before you start, check out the forum rules first

Account upgrade

Upgrade your account to get access to full features

Advertising

Would you like to place your advertisement with us ?

Resources Manager

Hundreds of IPTV scripts and apps are available for download

Info Linux Command History - Finding that oneLiner

peezy

Extended Member
Ext. Member
Joined
Oct 2, 2019
Messages
56
Reaction score
255
Points
44
Location
The Woods
Have you ever needed that command that took you 3 hours of dorking and a couple beers to find, but the thought of how to re-find it left your brain? This may be a total noob thing but when you hit the up arrow on the command line to look through past statements, it's a bit hard to sift through to find the one your looking for. Well I had no idea until I tried looking that those commands are stored somewhere....duh....they r brought up as history so they have to be stored somewhere.

You can find them for user other than root in

/home/myuser/.bash_history

If you are root

/root/.bash_history

Some flavors have the file as just .history, if you have trouble locating it, try

echo $HISTFILE

Just nano or vim that mofo

There are some other commands you can enter to add a date time stamp to your history file along with the command you entered, or even change how many commands are stored in the file. Once the file hits the limit of commands it starts overwriting itself, so hopefully you open it in time.

Hope this helps someone out there.

Here is the link for more information and how to add date/time stamp, etc.

 
Last edited:
shape1
shape2
shape3
shape4
shape5
shape6
Top
AdBlock Detected

We know, ad-blocking software do a great job at blocking ads. But our site is sponsored by advertising. 

For the best possible site experience please take a moment to disable your AdBlocker.
You can create a Account with us or if you already have account, you can prefer an Account Upgrade.

I've Disabled AdBlock