General :: Use History Command To Show The Time Stamp?

Apr 13, 2011

I want to use history command to show the time stamp, user id, ip address, command logged

View 1 Replies


ADVERTISEMENT

General :: Copied Files In Nfs Does Not Show The Right Time-stamp?

Mar 3, 2011

I have two systems running on linux. system one is running with RHEL 5.4/X86_64 hardware, system two is running with RHEL 5.3/i686 hardware. One filesystem is shared from system two and mounted as NFS on system one. Now when i do a copy from local filesystem to the NFS share from system one,it shows as follows

Quote:

-rw-r--r-- 1 xkinved rbak1 30 Mar 3 2011 king

But if i do copy with -p option then it shows right time stamp. Both machines are running with slight(minutes) different in time. Does this could be cause for this problem? The problem is happening while i do FTP from some other machines too.

View 3 Replies View Related

Software :: Command To Get History Command Lines And Time In SUSE?

Jun 23, 2009

I have to trace back what command and when it is used for the last 3 months. It is quite urgent as I have trouble with the system configuration.

View 5 Replies View Related

General :: Folder In Window Its Not Showing The Folder Time Created Time Stamp?

May 20, 2011

I was created one folder in linux with current time was 1978(For example). I was moved this folder to usb(FAT32 file format).While seeing this folder in window its not showing the folder time created time stamp, because the USB file system only support the year after 1980 . But again i am putting the same folder in linux ,its showing the correct time stamp.How is it possible? Because FAT32 only supports timestamp after 1980, but still its showing 1978 in linux system

View 7 Replies View Related

General :: Change File Time Stamp (Bash Script)?

Jan 6, 2010

I need some help recovering from a "slight" screwup. We just moved 3 TB of data from one RAID Array to another. Low lever archive files. This was done with a regular cp (for some reason) and now we have lost all the timestamps on the files, and we urgently need to get the timestamps back on these files.

We are running Ubuntu 9.10 Server and we have mounted the following

1. /mnt/old-raid ##Old raid from the old server
2. /mnt/new-raid ##New raid on the server

I know we can read out the timestamp on the old server using the command stat -c '%Y' <<filname>>

I know we can change the timestamp of the file, using the command touch -d '<<date>>'

To get from the stat -c date to the input date in touch we need to use date -d @<<timestamp>> +'%d %b %Y %R'

So my question is, how can I create a loop that will list all files in a folder, get their timestamp and update the old timestamp with the new?

View 4 Replies View Related

Ubuntu :: Make Folder With A Time Stamp For A Name?

Jun 2, 2010

I need to make a few folders, but I need the fold name to reflect the time which they were created. For example: if I create a folder at on 2010.06.03 at 13:01:34 then I would need a file name something similar to the following 20100603_130134. In addition, could the same method be used for .tar files? I would like a bash script which I can run to perform the following; however, I am not familiar with scripting in Linux yet.

View 2 Replies View Related

Programming :: Appending A Time Stamp To Prstat

Aug 9, 2010

I am trying to run prstat for an extended time, outputting to a file and appending a time-stamp to each line (running on Solaris 10). I have tried this:

prstat -c -U usrname 60 480 | nawk '$1=="PID" { "date +%d%m%Y-%H:%M:%S" | getline d ; close("date") } { print d,$0 }' > /tmp/fileName &

this only appends the time the command was started to each line. I would like to fix this so that a new time is recorded every 60 seconds.

View 1 Replies View Related

Ubuntu :: Pdftk Stamp Function - Stamp A Pdf Document

Apr 8, 2010

I've been trying to use the stamp function in pdftk. I'm trying to stamp a pdf document with a pdf I generate on the fly that contains the current date. Below is what I have so far. The problem is that pdftk says "Error: failed to open stamp PDF file". the file is in the same dir as execution, I've made it 776, I've specified full paths... nothing seems to work. I've even tried the "prompt" option and specify it manually but I get the same behavior. This is pdftk version 1.4.

Script (named "go"):
Code:
# date in YYYY-MM-DD format
umask 0
# create a variable with a formatted date
TODAY=`date +%Y-%m-%0e`;
[Code].....

View 3 Replies View Related

Ubuntu Multimedia :: Change Kaffeines Time Stamp?

Jan 20, 2010

How do I change the time stamp on videos that I record so that they say what DAY they were recorded instead of just the DATE? I can't find the config file which I assume would be the place to look.

View 1 Replies View Related

General :: Bash Command History Update Before Execution Of Command

Jun 7, 2010

Bash's command history is great, especially it is useful when adding the history -a command to the COMMAND_PROMPT.However, I'm wondering if there is a way to log the commands to a file as soon as the Return key is pressed, e.g. before starting the command and not on completion of the command (using the COMMAND_PROMPT option would save the command once the prompt is there again).

I read about auditing programs like snoopy and session recorder like script but I thought they're already too complex for the simple question I have. I guess that deactivating that script logs all the output of the command would lead already in the right direction but isn't there a quicker way to solve that probelm?

View 1 Replies View Related

SUSE :: Renaming Multiple Files - Adding Date / Time Stamp In Name

Feb 1, 2009

I am trying to rename multiple files in a directory and add the Date/Time stamp to the file name.

Example:
file1.txt
file2.txt
file3.txt

Renamed to
2009_02_01_21.txt
2009_02_02_21.txt
2009_02_03_21.txt

I am able to accomplish this using this command:
mv file1.txt "`date +%Y_%m%d_%H`".txt

But I want to automate this task, I have many files to process and I dont want to do them one by one.

I already tried this but it does not work
mv *.txt "`date +%Y_%m%d_%H`".txt

View 2 Replies View Related

General :: Command To Delete Bash Command History?

May 31, 2010

What's the command to delete bash command history?

View 4 Replies View Related

Ubuntu Multimedia :: Rename All JPEGs In A Folder By EXIF Date & Time Stamp?

Feb 24, 2011

In the Windows world where I came from, Irfanview freeware easily renamed a large folder of JPEG photos by EXIF time & date stamps, appending a unique number if the time and date stamps were the same. Is there an equivalent rename-by-EXIF information batch command in Ubuntu 10.04 Lucid? For example, change (based solely on EXIF information): FROM:DSC_0001.JPG TO:20110224_09:34:56am.JPG

View 9 Replies View Related

Ubuntu :: Show Time Elapsed/remained In 'shred' Terminal Command?

Jun 4, 2010

It is possible to not only have the progress of the shredding, but the time elapsed/remained/whatever as well? It would be great to be able to see the time elapsed/time remaining along with the percentage complete.

View 4 Replies View Related

General :: Use 'history' Command To Fire Last Run Command?

Oct 14, 2010

How do I use the "history" command to fire the last run command?

View 3 Replies View Related

General :: Find Out PID Of A Command Which Is In History?

Jun 20, 2011

If someone has done something wrong on a shared linux machine. If i want to find out who is that person or ip from where it is been done what are all the possible ways. 1 possibility I thought was to get the PID of the command and get other details from that PID?

View 4 Replies View Related

General :: Can Not Use Command 'history' In Fedora13?

Nov 1, 2010

Just as the subject,I didn't find a appropriate answer with google. Is there any command to replace it?

View 5 Replies View Related

General :: Command History Alternate Location

Nov 23, 2010

I am just wondering is there any other altrenate location which saves the history command logs other that bash_history file.

View 4 Replies View Related

General :: Check The User Command History In Unix?

Aug 19, 2010

I know the 'history' command give me a list of the commands I have typed into the Unix terminal.

How do I see the command history for all of the users currently logged onto the system?

View 1 Replies View Related

General :: Command Line - How To View More Of My History In Screen

Jun 28, 2011

I was running scripts overnight from the command line (inside Screen on a Linux EC2 instance) and some errors that I was not tracking occurred. I want to "scroll up" or view more of the history in Screen, but I cannot seem to find any commands that will work. I need to see the onscreen output "further up" than I can on my current screen. CTRL + a is supposed to put me into scroll mode inside Screen, but it's not working.

View 4 Replies View Related

General :: Administration - View Command History Of Another User

Jul 11, 2011

Can anybody show me how to view command history of another user? I am an admin on my machine. I can see normal history by viewing /home/user_name/.bash_history but i can't see commands of that "user_name" when they were doing sudo. Is there a way to view all command executed by one user?

View 3 Replies View Related

General :: History With Date And Executed File/command?

Feb 17, 2011

what is the tool to get the history inclduing the user name,command time and from which file/folder the command is executed.

View 1 Replies View Related

General :: Histroy Command- Not Showing All The History Files?

May 22, 2010

while using history command i can able to see only last twenty histroy commands.

View 1 Replies View Related

Ubuntu :: Show History Of Reboots On Login?

Jun 15, 2010

I was wondering if there was a script that would run on log in telling me the history of when the server was rebooted or such, along with the last user and motd (which is a roflcopter in my case)

View 8 Replies View Related

Ubuntu :: Disable Go History To Show The Names?

Oct 3, 2010

go to one of your partitions and just open some folders ,Now if you just check GO you are able to see the names of all the folders that you just have checked . All I need to know is , how can I disable go history to show the names ?

View 2 Replies View Related

General :: Check The Browsing History By Individual Users Web Surfing History By Their IP Addresses?

Jun 29, 2010

I am using squid proxy server for sharing Internet in my internal network. I would like to know that how can I check the browsing history by individual users web surfing history by their IP addresses?

View 1 Replies View Related

Ubuntu Servers :: Show History Of Reboots On Login?

Jun 15, 2010

i wanted to know what script i would put where that would tell me the last 5 times the server rebooted whenever i logged on.

View 9 Replies View Related

General :: Use "history" Command To Fire Last Run Command?

Oct 7, 2010

How do I use the "history" command to fire the last run command?

View 4 Replies View Related

Programming :: Calling Command From History Using Variable Like !$command?

Nov 19, 2008

suppose i store the history number of a command say :

1004 cat file

Then now i want to run it like : !1004 but by using a variable.

command=1004
!$command

i am getting errors like :

command=1004command

View 2 Replies View Related

Ubuntu :: After Log In Takes Long Time To Show Desktop, Monitor Events At Log In Time?

May 24, 2011

It takes me a while to log in the splash screen just sits there for ages before i get to the desktop. Never used to be this slow and I'm not sure why. Firstly, I'm running Ubuntu 11.04, standard DE. I do have conky starting up in a script but it has the & at the end of the line so I didn't think this would cause it (or is there some special case for log in time on how & is treated?). However as a test I will comment out the line in the script and see if it is the cause.

However just for general knowledge and in case that isn't the problem, how does one go seeing what is happening during the time from when one log's in and the desktop is displayed? Is there some kind of log that shows the date/time that can be enabled or is there a debug mode that can be enabled somehow via special keys or maybe from grub?

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved