Visit Our UNIX and Linux User Community


commands file


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users commands file
# 1  
Old 07-03-2006
commands file

Where can i found on a UNIX machine the actions and commands history???
any one can help me???sanks
# 2  
Old 07-03-2006
It depends on your shell, e.g. if you use bash then look into ~/.bash_history
# 3  
Old 07-03-2006
What OS and what shell are the commands run in?

Usually the .history file in the user's login directory is a place to start.

Is accounting enabled?
# 4  
Old 07-03-2006
Sun OS 5.8, solaris 8
# 5  
Old 07-03-2006
what shell?
bash would have it in $HOME/.bash_history

you can use the command fc -l in k-shell to list the history
Also check for file .history in your home directory
# 6  
Old 07-04-2006
On SunOS 5.6 it's in histstore in your home directory (~/histstore) - may be the same for 5.8

Previous Thread | Next Thread
Test Your Knowledge in Computers #878
Difficulty: Medium
Memory allocation is less critical in a real-time operating system (RTOS) than in other operating systems.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

File test commands with variable file name

Hi there I have the following code SDFFILE_SRC=$BACKEND_DIR/$SDFFILE_MIN_tar SDFFILE_DST=$SIM_DIR/$SDFFILE_MIN if ] .... .... .... fi Simply I need to check if $SDFFILE_SRC isa newer than $SDFFILE_DST or $SDFFILE_DST does not exist then execute the IF Body. Although the the... (2 Replies)
Discussion started by: aelhosiny
2 Replies

2. Shell Programming and Scripting

Need unix commands to delete records from one file if the same record present in another file...

Need unix commands to delete records from one file if the same record present in another file... just like join ... if the record present in both files.. delete from first file or delete the particular record and write the unmatched records to new file.. tried with grep and while... (6 Replies)
Discussion started by: msathees
6 Replies

3. Shell Programming and Scripting

Reading UNIX commands from file and redirecting output to a file

Hi All I have written the following script: #!/bin/ksh while read cmdline do echo `$cmdline` pid="$cmdline" done<commands.txt =========== commands.txt contains: ps -ef | grep abc | grep xyz |awk '{print $2}; My objective is to store the o/p of the command in a variable and do... (8 Replies)
Discussion started by: rahulparo
8 Replies

4. Solaris

In which file we can see commands of vxvm

Hi, 1)In which file we can see commands of vxvm. 2) In my PC when i use commands like vxresixee, vxevac, vxconfigd etc error comming like command not found? can anyone help me out? (1 Reply)
Discussion started by: rahulpakanati
1 Replies

5. Shell Programming and Scripting

Reading Commands From a File

I am trying to create a script that will read bash commands from a text file and execute them. These commands would all be defining variables. Is this possible, and if so, how do I do it. Any help would be greatly appreciated. (2 Replies)
Discussion started by: vockleya
2 Replies

6. Shell Programming and Scripting

Can BASH execute commands on a remote server when the commands are embedded in shell

I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config. I am not sure if I can do this with BASH scripting. I have set up password less login by adding my public key to authorized_keys file, it works. I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies

7. UNIX for Dummies Questions & Answers

Output of 2 commands into 1 file

How could you put the output of two commands into one file using a single command? For example put the output of a grep command and a sort command into one file together. Here is another rough explanation of what I am trying to do; output of $ grep pattern file1 plus output of $ sort file... (8 Replies)
Discussion started by: enuenu
8 Replies

8. Programming

code that reads commands from the standard i/p and executes the commands

Hello all, i've written a small piece of code that will read commands from standard input and executes the commands. Its working fine and is execting the commands well. Accepting arguments too. e.g #mkdir <name of the directory> The problem is that its not letting me change the directory i.e... (4 Replies)
Discussion started by: Phrozen Smoke
4 Replies

9. Shell Programming and Scripting

A single file for many commands

Hello All, I have a list of short programs (over 200) to run and it is a hassle to sit and execute each one of them one after the other. What I'd like to know is if it was possible to create one file which would list all these commands and all I need to do is to execute this one single file.... (2 Replies)
Discussion started by: zenla15
2 Replies

10. UNIX for Dummies Questions & Answers

Commands for File Security

I was reading about unix on the site on the internet when I came across a topic that deals with using commands like "crypt" to encrypt files so that no one but the owner can see contents of the file. Now, I tried that command "crypt" on my Linux RedHat version 7.2 system and it didn't work ... (5 Replies)
Discussion started by: TRUEST
5 Replies

Featured Tech Videos