Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to clear history in Linux Post 302480453 by R0H0N on Wednesday 15th of December 2010 02:36:47 AM
Old 12-15-2010
SmilieSmilieSmilieSmilieSmilieSmilieSmilieSmilie

I also had a same problem long time back. I was using UNIX-HP and I found that all entries are stored in .sh_history(hidden file) in my home directory. So, I just made it empty and I was done. U can also try this.
R0H0N
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

clear passwd history without ...

how do I clear passwd history of a user without compromising the audit trail for security? in a nutshell, user abc wants to re-use his passwd ( he is not savvy with computers ) (4 Replies)
Discussion started by: A Stewart
4 Replies

2. UNIX for Dummies Questions & Answers

how to clear history

Hi... i have one doubt pls... 1)can we clear the command line history in UNIX for a paricular login(scadm/root)if so how?. 2) can we see the time at which command executed. history is showing like : 100 display 101 lock 102 exit (7 Replies)
Discussion started by: gincemathew
7 Replies

3. Solaris

how to clear command history

hi Any one can help me. I am using Sun_Solaris. The command history set to 100 at .cshrc. I am unable to clear the command histoy. In Linux it is very easy by giving command history -c I could not find any such type command to clear the history. Is there any such type of command for solaris.... (3 Replies)
Discussion started by: prabir
3 Replies

4. Linux

History of executed command in Linux

Hi All, Is there a way to check command executed by users in Linux for a specific date? I know we can use history, but it doesn't shows yesterday's executed commands. rgds, (3 Replies)
Discussion started by: ronny_nch
3 Replies

5. Shell Programming and Scripting

How to clear history logs of all terminal sessions

Hi, I would normally clear off the history entries from a terminal by using the following commands: > ~/.bash_history history -c But this will remove the entries of that particular session only. How to prune all the entries of all login sessions for a particular user in a system? N.B:... (3 Replies)
Discussion started by: royalibrahim
3 Replies

6. Linux

clear in Linux ksh

Clear in Linux #!/usr/bin/ksh am using clear in the script, but it is not working, it gives an error as follows, 'xterm': unknown terminal type. please help out.:confused: ---------- Post updated at 01:19 PM ---------- Previous update was at 12:01 PM ---------- if then ... (2 Replies)
Discussion started by: pradebban
2 Replies

7. Shell Programming and Scripting

how to clear history in ksh?

I want to clear the history so that no one should be able to see what commands I gave in the AIX OS level. I tried using history -c , ~/.sh_history, but they aren't working :wall: Please tell me the command in ksh which can clear all the previous history? (4 Replies)
Discussion started by: lg123
4 Replies

8. Shell Programming and Scripting

Clear history in ksh

Hi Am using ksh shell I need to remove history of commands used.. I tried # rm .vi_history # touch .vi_history # chmod 600 .vi_history This didnt work.. I tried also # rm .sh_history # touch .sh_history # chmod 600 .sh_history (5 Replies)
Discussion started by: Priya Amaresh
5 Replies

9. UNIX for Dummies Questions & Answers

[Solved] How to clear "history" command entries??

As in the title, how to clear the history entries? For eg: if i enter history, series of linux commands getting displayed from day 1. I need to clear those entries and want linux commands to be stored freshly. Thanks in advance (6 Replies)
Discussion started by: karthick nath
6 Replies

10. Programming

Clear standard input buffer for C program in Linux

Hello friends! i am writing a code in which i take inputs (numbers) from user and count the total number of positive, negative and zeros entered. I need to clear my standard input buffer before scanf() command. My compiler is completely ignoring the fflush(stdin) command. its not even showing any... (1 Reply)
Discussion started by: Abhishek_kumar
1 Replies
mount_cachefs(1M)														 mount_cachefs(1M)

NAME
mount_cachefs: mount, umount - mount and unmount CacheFS file systems SYNOPSIS
[specific_options] resource mount_point mount_point DESCRIPTION
The utility attaches a named resource to the file system hierarchy at the pathname location mount_point, which must already exist. If mount_point has any contents prior to the operation, the contents remain hidden until the resource is once again unmounted. The CacheFS- specific version of the command mounts a cached file system; if necessary, it NFS-mounts its back file system. It also provides a number of options that are CacheFS-specific for controlling the caching process. CacheFS can be used only with NFSv2 or NFSv3. It cannot be used with NFSv4. If NFSv4 is enabled by default CacheFS mount fails, unless the user specifies that vers is 2 or 3. See mount_nfs(1M) for the description of vers. The utility unmounts mounted file systems. Only a superuser can mount and unmount file systems. See mount_nfs(1M) for the description of resource. Options (mount) See mount(1M) for the description of the options. Set file system specific options according to a comma-separated list with no intervening spaces. Notice that the backfstype argument must be specified. Specifies that cached attributes are held for no more than n seconds after directory update. After n seconds, all directory informa- tion is purged from the cache. The default value is seconds. Specifies that cached attributes are held for at least n seconds after directory update. After n seconds, CacheFS checks to see if the directory modification time on the back file system has changed. If it has, all information about the directory is purged from the cache and new data is retrieved from the back file system. The default value is seconds. Specifies that cached attributes are held for no more than n seconds after file modification. After n seconds, all file information is purged from the cache. The default value is sec- onds. Specifies that cached attributes are held for at least n seconds after file modification. After n seconds, CacheFS checks to see if the file modification time on the back file sys- tem has changed. If it has, all information about the file is purged from the cache and new data is retrieved from the back file system. The default value is seconds. Sets and to n. The file system type of the back file system (for example, Specifies where the back file system is already mounted. If this argument is not supplied, CacheFS determines a mount point for the back file system. The name of the cache directory. ID is a string specifying a particular instance of a cache. If you do not specify a cache ID, CacheFS will construct one. Verifies cache consistency only when explicitly requested, rather than periodic checking that is done by default. A consistency check is requested by using the option of the command. This option is useful for back file systems that change infrequently, for example, The and are mutually exclusive. Causes the front file system to interpret the mode bits used for access checking instead of having the back file system verify access permissions. Do not use this argument with secure NFS . Disables cache consistency checking. By default, periodic consistency checking is enabled. Specify only when you know that the back file system will not be modi- fied. Trying to perform cache consistency check using will result in error. The and are mutually exclusive. Disable ACL functionality. If you try to change ACL entries for a file on a CacheFS file system mounted with the option an error is returned. However, if you try to get the ACL entries for a file, CacheFS will return fabricated ACL entries by using UNIX file permissions. By default, the CacheFS file system supports ACL functionality. See aclv(5) for a description of ACL entries. Purge any cached information for the specified file system. Remounts a read-only file system as read-write (using the rw option). If specified when mounting a CacheFS file system, a binary will be read and populated in the cache the first time it is loaded. Subsequent access to the binary will be satisfied from the cache. Read-write (default) or read-only. Allow (default) or disallow set-uid execution. Verifies the cache consistency with the NFS client's copy of file attributes, and coordinates with bakfs (NFS) for delayed flushing of modified pages to the server. The delayed flushing of pages improves CacheFS response times. The must not be used when multiple clients are modifying the same file. The and options are mutually exclusive. Write modes for CacheFS. The mode (the default) handles writes the same as NFS does; that is, writes are made to the back file system, and the affected file is purged from the cache. You can use the mode when you are sure that no one else will be writing to the cached file sys- tem. In this mode, all writes are made to both the front and the back file system, and the file remains in the cache. Overlay mount. Allow the file system to be mounted over an existing mount point, making the underlying file system inaccessible. If a mount is attempted on a pre-existing mount point without setting this flag, the mount will fail, producing the error "device busy". When processing an unknown specific_option, the utility prints a warning message and processes the next one. This option prevents printing the warning message. EXAMPLES
CacheFS-mount the file system which is already NFS-mounted on as Lines similar to the following appear in the file after the command is executed: Mount a CacheFS filesystem over NFS Version 2. AUTHOR
was developed by Sun Microsystems, Inc. SEE ALSO
cfsadmin(1M), fsck_cachefs(1M), mount(1M). mount_cachefs(1M)
All times are GMT -4. The time now is 11:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy