Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    bash history line

    hey i'm new to all of unix and i'm kinda in a pickle atm... ..
    i need to make a program in bash that prints out the commands used by a user with the posibility of chosing the period in wich the command was typed and no i cannot use the "history" command, need it to be in editing mode, it needs to be a program in bash :/

    if anyone can help me out i'd really appreciated. thank you very much

  2. #2
    Linux User saivin's Avatar
    Join Date
    Dec 2008
    Bengaluru, India
    Are you giving us homework?
    You can use
    cat /home/<user>/.bash_history
    to see what a user has executed. But to know the time detail...
    A candle looses nothing by lighting other candles. - Khalil Zibran.
    Registered Linux User #490076

  3. #3
    uhmm that's just the point i can't use just the history command, it has to be a script in bash and i don't really care about the chosing the period thing, but i really need the script for the history

    and yeah i'm giving ya homework

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts