LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-01-2010, 11:38 AM   #1
corewar
LQ Newbie
 
Registered: Nov 2010
Posts: 10

Rep: Reputation: 0
why i can not use the command "history" in fedora13?


Just as the subject,I didn't find a appropriate answer with google. Is there any command to replace it?
 
Old 11-01-2010, 11:58 AM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Please provide some details: 1. which shell are you currently using? 2. What "cannot use the command history" means? Do you get some error or it just doesn't show anything when invoked?

Take in mind that the history behaviour depends on some environment variables. The correct set-up depends on their current value. You can check them using:
Code:
set | grep -i hist
 
Old 11-01-2010, 02:07 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
history shows the history OF WHAT YOU TYPED into the terminal
it shows the last 500 commands YOU TYPED into the terminal

if you have not used the terminal than there will be no history of the terminal to show .
 
Old 11-03-2010, 11:52 AM   #4
ranvir03
LQ Newbie
 
Registered: Sep 2010
Posts: 19

Rep: Reputation: 0
Wink

hay firstly confirm that your are login as "root" user or not,
if not then simply login as root user
after then try history command....
 
Old 11-03-2010, 02:17 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
Quote:
hay firstly confirm that your are login as "root" user or not,
if not then simply login as root user
that would only give you THE ROOT terminal history and NOT your own
second on some distros you CAN NOT log in as root and most you can NOT login as root into the gui .
 
Old 11-11-2010, 12:35 AM   #6
LaughingBoy
Member
 
Registered: May 2006
Location: Adelaide, South Australia
Distribution: Fedora 6-17 x64 / Ubuntu 10.x x64
Posts: 95

Rep: Reputation: 16
Arrow

Quote:
Originally Posted by corewar View Post
Just as the subject,I didn't find a appropriate answer with google. Is there any command to replace it?
I think as everyone else has eluded to - what makes you think you can't? An appropriate error message would be helpful in helping you. :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
clear history "last" command nistelrooy Linux - Newbie 10 11-03-2010 01:09 PM
The "History" Command? carlosinfl Linux - General 5 01-29-2008 04:14 AM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 11:18 PM
Command Line "History" mcupples Linux - Server 2 04-05-2007 04:32 PM
How to find back "history" database after "history -c" ? san_lss Linux - Newbie 1 01-07-2004 12:53 PM


All times are GMT -5. The time now is 04:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration