LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-30-2010, 07:39 AM   #1
meandsushil
Member
 
Registered: Feb 2010
Posts: 143

Rep: Reputation: 14
How to clear history in LINUX?


How to clear history in LINUX?
which command?

And how to remove permissions which is given for a user to be group admin?
by
this command-
gpasswd -A ram sales

where ram is user sales is group

now tell me how to deselect him as admin?
 
Old 11-30-2010, 07:57 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Which history?

You could try gpasswd -A '' sales or gpasswd -A nobody sales

EDIT: that '' is two single quotes, not a double quote
 
Old 11-30-2010, 08:07 AM   #3
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Quote:
Originally Posted by meandsushil View Post
How to clear history in LINUX?
which command?
Google search
Quote:
bash clear history
First listing
http://www.faqs.org/docs/bashman/bashref_107.html
Exerpt
Quote:
...
history


history [n]
history -c
history -d offset
history [-anrw] [filename]
history -ps arg

With no options, display the history list with line numbers. Lines prefixed with a `*' have been modified. An argument of n lists only the last n lines. Options, if supplied, have the following meanings:

-c
Clear the history list. This may be combined with the other options to replace the history list completely.
...
See how easy it is to do research? Give it a try some time. You could have found the answer yourself in less time than it took you to write this question.

Quote:
Originally Posted by meandsushil View Post
And how to remove permissions which is given for a user to be group admin?
by
this command-
gpasswd -A ram sales

where ram is user sales is group

now tell me how to deselect him as admin?
I've never used this but having just read about it I would say that you would issue the command with the new list of authorized administrators.

Example: user accounts one, two, and three are administrators of the numbers group. I want to remove user two so I issue the gpasswd command with one and three.
Code:
gpasswd -A "one, three" numbers
I have not tested this. I've never seen group administrators implemented anywhere.

Last edited by stress_junkie; 11-30-2010 at 08:10 AM.
 
1 members found this post helpful.
Old 11-30-2010, 02:18 PM   #4
pascalfringe
LQ Newbie
 
Registered: Nov 2010
Location: Delhi, India
Distribution: Ubuntu
Posts: 6

Rep: Reputation: 1
history -c
 
1 members found this post helpful.
Old 11-30-2010, 02:42 PM   #5
teebones
Member
 
Registered: Aug 2005
Location: /home/teebones
Distribution: sometimes this, sometimes that..
Posts: 502

Rep: Reputation: 56
homework by chance? (suspicious look)
 
1 members found this post helpful.
Old 11-30-2010, 04:19 PM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Quote:
Originally Posted by meandsushil View Post
How to clear history in LINUX?
which command?
If you mean the history of commands you typed at the shell, run the command "history -c".

If you mean web browser history, then it depends on the web browser and has nothing to do with Linux.
 
1 members found this post helpful.
Old 11-30-2010, 06:56 PM   #7
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Quote:
Originally Posted by MTK358 View Post
If you mean the history of commands you typed at the shell, run the command "history -c".

If you mean web browser history, then it depends on the web browser and has nothing to do with Linux.
The history built into a shell has neither more or less to do with Linux than does the history maintained in a web browser. Both the shell and web browser are simply userspace tools.

--- rod.
 
1 members found this post helpful.
Old 12-01-2010, 01:12 AM   #8
meandsushil
Member
 
Registered: Feb 2010
Posts: 143

Original Poster
Rep: Reputation: 14
Thanks a lot!
 
  


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
Is it possible to clear Synaptic history? Mr. Alex Linux - Software 1 06-13-2010 05:43 PM
How do I clear history in Linux ibrahimt Linux - Security 8 07-14-2009 02:15 AM
How to clear history hi_msh Linux - Newbie 2 01-12-2006 05:40 AM
How does one clear Konqueror's history? forand Linux - Software 9 10-10-2003 01:11 AM
Clear History Mystified Linux - Newbie 1 03-25-2002 09:27 AM


All times are GMT -5. The time now is 10:05 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