Tagged Questions
0
votes
0answers
27 views
How to get timestamp since epoch in Windows?
I want to measure the time of start for a program but for this I want to get the timestamp in Windows, but I need to get the time-stamp in mili-seconds since the Unix epoch format. (The Unix epoch is ...
0
votes
2answers
340 views
How to get the current timestamp when using 'ps' in a Bash script?
I am writing a shell script that gets all the current processes running, and pipes them into grep to filter out the ones I need.
But I also need it to give me a timestamp, either when the ps occurs, ...
1
vote
4answers
101 views
How do I get the start and end timestamps of a command?
I have a tool that outputs to standard output every so often, without loss of generality, let's say that the sequence goes:
mysystem$ ./runme
Starting
Done
mysystem$
Now 'runme' takes a while to ...
0
votes
1answer
633 views
Unix ls files within a certain time range
I'm trying to find files that have dates within a specific time range (like the last 2 months).
How do I go about doing that?
5
votes
2answers
283 views
How to prove a file was not tampered?
So for one of my programming assignments, I used the turnin command as opposed to a class-specific binary that I was supposed to use. I didn't realize this until I found out that my assignment wasn't ...
3
votes
3answers
4k views
How to display Unix time in the timestamp format?
I'm looking for a way to display my time in Debian Linux as a timestamp, e.g.
1279628325
I can't find any options to do that with the date command. Any ideas?
1
vote
2answers
5k views
How to copy a file in unix without altering its last modified time?
If I copy some file from some place to another using cp, the timestamp on the copied file is set to the time of the copy.
Is there some way to avoid this?
I need to copy files without altering their ...