Fedora :: Know The Time And Date Of A File Downloaded From The Net?
Dec 3, 2009
How do I know the time and date of a file downloaded from the net. Is it possible at all? If I want to know when the downloaded file such as a text file was created ie written by the author if not mentioed at all in the entire document. The command I use locally to know file creation time is given below.
ls -l filename.txt
-rw-r--r-- 1 root root 691 Dec 3 11:12 filename.txt
I've got fedora 11 set up to use network time protocol to sync my laptop's date & time when I'm on-line. The question is simple really, I've added a local universality's time server (what is public) and it's live. but it's added to the end of the default time servers what come with fedora. How do I get fedora to just use the local time server, is it a case of removing the default time servers for fedora, but there is a box what says advanced options which are. sync system clock before starting service ???? & use Local time source (( is that the same as the local ntp server that I've got set up ))Hope some body can help me with the network time protocol part of Date/Time settings.
I need to get the modified date on a file in linux to use in a script.I tried using 'ls -l' on the file, but this caused problems when the date turned from a single digit into a double. The reason for the problem was because I was parsing the result string on spaces.How can I get the date of the last time a file was modified so I can use it in a script? For example, if a file was modified on 1/11/2010, I need the 11.
I have log files that everyday are downloaded from my webserver in the format: Code: samplesite.com.xxxxxxxxxxx.gz xxxxxxxxxx is a 10 digit epoch time. I am trying to figure out a way in batch to:
1. find all of exisiting files containing the pattern (after the first run it will only be one a day) 2. Isolate the epoch string 3. convert the epoch string to human readable date/time 4. rename the original file as samplesite.com.mmddYYYY.gz
For some reason, thunderbird uses some random order for the date elements, e.g. MM/DD/YY. I need to change it to YYYY/MM/DD but haven't found where! There is no option in TB to configure this so I guess it just picks some default from regional settings? Where do I need to go to set the date format to its logical form?
I upgraded from fedora 14 to fedora 15 yesterday. I live in India (IST) which is GMT +05:30. Every time I boot, my system clock increases its time by 5 and a half hours. For example, system clock on my machine is now Wednesday May 26,2011 22:44. If I were to reboot now, the time I would get is Thursday May 27, 2011 04:14. How do I correct this?
I would really like to preserve a file's original modified date and pass it back to the file as the same attribute after a script has worked on it. I get a lot of JPEG files from different places on the Net which I either turn around and upload or burn to disk, and having the "original" date of either download or last mod in a graphics app would be for me, in the long run, a lot more helpful when deciding, for instance, which files to "recycle" or pass on backing up more than once.I've tried doing this on my own every now and then. Where I run into problems is that it appears "stat" and "date" use different formats for date information, and I can't seem to puzzle out how to "translate" one to the other satisfactorily for the latter command.
Just to give an example: stat foo.jpg |grep Modify gives me Modify: 2010-07-12 06:28:56.890625000 -0400
Passing that string as-is to date foo.jpg, I get the errordate: unknown option -- 0 and the usual semi-courteous suggestion to Try 'date --help' for more information.Somehow my TexInfo database got screwed up somewhere along the line and info dategives me the short article on date input formats, not the full documentation for the command
I am using CRON to create a new, blank file, every minute, in a specific location on my web server. After web searching, and reading man pages, I get the impression that the following command is supposed to work:touch /home/mydomain/var/folder/attachments/`date +%H%M`.txtThis should give me a new file with a file name that is the current hour and minute.However, when executed, the CRON mailer reports:touch /home/mydomain/var/folder/attachments/`date +/bin/sh: -c: line 0: unexpected EOF while looking for matching /bin/sh: -c: line 1: syntax error: unexpected end of fileSo, it looks like shell is seeing the plus (+) sign as an EOFObviously, nothing get created.What would be the easiest, single line command to create an empty file, at a given location, with a time based file name
I am very new to linux. I just got the dual boot working a couple of days ago. Now I downloaded MATLAB (2009b) from my university website. It came in a zip file...well I have no clue how to install it. I looked at the instruction manual, it doesn't really explain much.
I've got something or someone downloading from me, probably scraping, and i can't figure out WHAT is using all of my bandwidth, and WHERE it's coming from.I don't know what SERVICE its from (eg, is this an apache request, or DNS DOS), what FILES are being accessed (if any, eg apache requests/scrape), and what IP is requesting them.My apache logs isn't showing anything that makes me thing i'm being scrapped. I'm kinda stuck in a brain fart right now and can't remember how to track this down, but the long and short is that all of my band width is being consumed, and 1 of my CPU cores is staying maxed out ("top" says that it's the avahi service).I've shut off the following services 1 by 1 to see if any of them would cause a drop in network usage, and none of them did:
I have downloaded Fedora-12-x86_64-DVD.iso. Now I want to create a bootable USB from the downloaded ISO file. I tried with the latest version of liveusb-creator 3.9.1. I am unable to do so. It took around 3 days to download the iso file and now I cant even use it.
ERROR MESSAGE:: Fedora-12-x86_64-DVD.iso selected Verifying filesystem... Extracting live image to USB device... Wrote to device at 1 MB/sec Creating 100MB persistent overlay LiveUSB creation failed! Here is the screen shot....
My date and time is not syncing correctly. I have 2 opensuse 11.1 servers and on both when you adjust the time in yast, I go back into yast and the setting for the NTP server is not set and "manual" is checked. I tried many times and the setting keeps reverting back. I always click on Save NTP configuration.
I installed my linux os in vmware.I need to set time of virtual machine to later time( 2005 ).I have an application whose license expires at 2006 so I have to do this in order for it to work .but when I change it it comes back to the current time ,so what is the solution for this .
If one right-clicks on the date and time tab in Ubuntu 10.10 desktop, then there is no obvious way to change the time. If one right-clicks and goes to help, then the explanation for changing time is as follows under the category 'usage':
2.3. To Adjust the System Date or Time.
To adjust the system date or time that the Clock applet displays, perform the following steps:
1. Right-click on the applet, then choose Adjust Date & Time.
2. Type the root password, then click OK.
3. The Clock applet starts the system tool that sets the system date and time. Use the tool to adjust the date and time.
The actual way to do this is as follows:
Right-click on the date and time applet. select preferences, and down at the bottom of the window that opens push the 'time settings' button.
Then you will be able to adjust that date and time.
I was wondering if anyone has discovered a way of either using cron or by custom scripting, to run a script at a certain date and time only once. The purpose would be to make one-off changes to dns zone files, or to virtual host configs on an apache server, or changing any type of text file at say 12:01am rather than waking up at 12:01am (when our maintenance windows start) to make changes to production servers.
I set my location, but Debian displays DATE in some messed format. I would expect such neat OS to recognize all those local settings based on my location, but that's not the case. It seems that Debian follows locale settings by set language (which is en_us in my case, as I guess in majority uses) or this format is default in any case
I would like to set date/time to DD.MM.YY. hh:mm:ss, and programs that display date data to follow this setting. Simply put, in Windows there is Control Panel and you set location, then OS uses some regional settings, like currency, separators, date/time format.
I've noticed that every time this desktop is turned on the date & time are as they were the last time I used it, and then have to put in the correct date & time again (this is why I chose the word 'persistent' within the tittle). When I try to change those have to write in the password for the date as well as for the time as if 'login-in' once were not enough! What I want to know is how to put in the date & time and receive the correct amounts the next time I turn the unit on again, as it should be? Do I've to open a terminal & do it with administrator's authority/credentials?
ubuntu 10.10 64bit my system clock keeps running late, and for some reason, I can't use NTP to synchronize it.If I try to use System -> Preferences -> Administration -> Time and date I can't unlock the popup (see attached screenshot) - I can click on the little yellow lock icon but when I do so, nothing happens.I tried "sudo ntpdate..." but i get the "the NTP socket is in use, exiting" error.