Sponsored Content
Full Discussion: .bash_history
Top Forums Shell Programming and Scripting .bash_history Post 302346951 by charbel.n.s on Monday 24th of August 2009 01:05:40 PM
Old 08-24-2009
But I think in this way, the commands entered by the user will not be stored in the .bash_history since the user will not have any permission to write into the file.

Correct me if I'm wrong?!
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

.bash_history

Question for all sysadmins. How do you keep track of what commands each user uses on his account. I thought an easy way is to monitor .bash_history, however those files can be "edited" by the user. Is there a permission combination that will allow the shell to record to it but yet they can't edit... (12 Replies)
Discussion started by: jason6792
12 Replies

2. UNIX for Dummies Questions & Answers

Change .bash_history to another one

we need the help to change .bash_histroy file in root ,(i.e) we want to save the histroy for .temp.txt for permenently. how to do?? Help us (1 Reply)
Discussion started by: thakshina
1 Replies

3. UNIX for Advanced & Expert Users

.bash_history

During the course of the session before I logout I see some of the commands listed from my previous session but not from my current session and after I logout and log back in I see the commands which I ran before logging out. Does the .bash_history stay in the buffer or someplace else then? ... (2 Replies)
Discussion started by: jacki
2 Replies

4. UNIX for Advanced & Expert Users

.bash_history modification

Hi Experts, I know my question would be strange but i need to understand how the .bash_history file is logging user actions (the mechanism) and if possible modify it to include also the date/time of every action done by the user. Sample file: # more .bash_history ssh <IP address> -l axadmin... (3 Replies)
Discussion started by: Dendany83
3 Replies

5. UNIX for Dummies Questions & Answers

how to store time in .bash_history file

Hi - user commands are written in . bash_history of that user when he logs out. my bash_history file shows. not sure what that number means #1329618972 ls -la #1329618978 ls #1329618980 ls -la my bash_profile looks like this PATH=$PATH:$HOME/bin export PATH export... (3 Replies)
Discussion started by: oraclermanpt
3 Replies

6. UNIX for Advanced & Expert Users

How to recover .bash_history?

rm -rf .bash_history some one ran rm -rf .bash_history on my Linux server(SUSE),I can see this command being run in current history, but I want the OLD history as well,can I recover the old history back. (9 Replies)
Discussion started by: Ankit Bansal
9 Replies

7. Shell Programming and Scripting

Display .bash_history with timestamp using script

Hi would like to ask if there is anyway to display .bash_history with timestamp using shell script? i know that you should use history command with HISTTIMEFORMAT="%d/%m/%y %T " to display it in terminal but it does not work when i use it on shell script. It seem that you can't run history... (1 Reply)
Discussion started by: pikamon
1 Replies

8. UNIX for Beginners Questions & Answers

How to get the "history" command to show all that is in the .bash_history file?

I am using the bash shell. When I view my recent command history using the "history" command from the prompt, it only shows me the commands starting at #928. The commands I need are earlier than that, but I can't figure out how to make the other 927 display. They are in my .bash_history... (1 Reply)
Discussion started by: Twinklefingers
1 Replies
KFSCMD(8)						      System Manager's Manual							 KFSCMD(8)

NAME
kfscmd, ksync - kfs administration SYNOPSIS
disk/kfscmd [-n name] cmd ... disk/ksync DESCRIPTION
Kfs is a local user-level file server for a Plan 9 terminal with a disk. Kfscmd transmits commands to the kfs server (see kfs(4)). The -n option changes the name of the kfs service to kfs.name (by default, full name is just kfs). Ksync executes the sync command for all active kfs servers. The known commands are described below. Note that some commands are multiple words and should be quoted to appear as a single argument to rc(1). allow Turn permission checking off (to simplify administration). disallow Turn permission checking on. halt write all changed blocks and stop the file system. help print the list of commands. rename file name Change the name of file to name. newuser user Add user to /adm/users and make the standard directories needed for booting. remove file Remove file and place its blocks on the free list. clri file Remove file but do not place the blocks on the free list. This command can be used to remove files that have duplicated blocks. The non-duplicate blocks can be retrieved by checking the file system with option f (see below). create file owner group mode [adl] Create the file. Owner and group are users in /adm/users and mode is an octal number. If present, creates an append only file, creates a directory, and creates a file that is exclusive-use. sync write to disk all of the dirty blocks in the memory cache. stats Report statistics about the performance of the file system. user Re-initialize authentication information by reading /adm/users. check [PRdfprtw] Check the file system. The options are p print the names of directories as they are checked. P print the names of all files as they are checked. r read all of the data blocks and check the tags. f rebuild the list of free blocks. d delete redundant references to a block. t fix bad tags. c fix bad tags and clear the contents of the block. w write all of the blocks that are touched. SOURCE
/sys/src/cmd/disk/kfscmd.c /$objtype/bin/disk/ksync SEE ALSO
kfs(4), mkfs(8), prep(8), wren(3) KFSCMD(8)
All times are GMT -4. The time now is 01:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy