General :: How To Find Installation Date Of OS?
Oct 22, 2010How would i find the installation date of my OS.
View 5 RepliesHow would i find the installation date of my OS.
View 5 Repliesls -l /tmp/empty_file*
-rw-r--r-- 1 root root 0 2010-05-30 08:00 /tmp/empty_file
-rw-r--r-- 1 root root 0 2010-05-30 12:00 /tmp/empty_file1
This looks good, the files expected to be seen are output: find /usr ( -newer /tmp/empty_file -a ! -newer /tmp/empty_file1 ) -print
But this shows me files that should not be output and likewise when I replace ls with tar it is tarring a whole bunch of stuff I do not want: find /usr ( -newer /tmp/empty_file -a ! -newer /tmp/empty_file1 ) -exec ls -l {} ;
In the end I would like to replace the "ls" with "tar cvvfp some.tar {} ;", but can't figure out what is going wrong here.
so I was wondering how I could do a simple find which would order the results by most recently modified. Here is the current fine I am using. (I am doing a shell escape in php, so that is the reasoning for the variables. find '$dir' -name '$str'* -print | head -10
How could I have this order the search by most recently modified. (Note I do not want it to sort 'after' the search, but rather find the results based on what was most recently modified)
I have a ton of files that are timestamped directories. These all look like2011-06-24_13.53.36 // a directory name for june 24th, 1:53:36 pmI have thousands of these directories. I want to do operations on some of the older ones. Let's say I give it a string for date time that matches that exact format, like i'll give it2011-06-25_00.00.00 // june 25th, 12amI want to find all the directories BEFORE my time. So if i give the string for 12am on june 25th, i want to find all the directories before then.If not i can find EVERY directory i have like this and then filter after wards. The created/modified dates are not tied to the actual timestamp im looking for (that would make this easier)
View 2 Replies View RelatedI know find can do what I am looking for, but I am wondering if there is an alternative way to find files on the filesystem either created before/after a certain point, or at a certain time.
Typically I rely on updatedb & locate for most of my file searching needs. Issues with those tools, though, are that it only has directory and file names, and it only creates a database of local directories, not anything mounted via CIFS|NFS or via -o loop (eg, .iso images).
So if I need to find files created after yesterday across the entire system (local and remote filesystems), I am currently needing to use find.
What other tools, if any, would accomplish this in a similar fashion?
I have tried ls and grep, but that requires (in my attempts so far) multiple searches:
ls -lR | grep Aug | grep 10
ls -lR | grep Aug | grep 11
I need to know all files modified within a date and time range.E.g: All modified files between 20 April 2010, 1100-1200 Hrs."find / -mtime +10 ! -mtime +11" :: this i found for date but how to include time as well.
View 2 Replies View RelatedIs there a script to do this? I have shotwell and want to find files that are going to cause problems with automatic sorting.
View 3 Replies View RelatedWhat offline method is there of finding out days since a certain date. Example: How would someone find the number of days from 1-Jan-2003 to 7-Dec-2010? Could someone write a script that takes in the 2 dates and output the number of days?
View 5 Replies View RelatedI'm trying to find a proper command to move a certain set of files according to date/time range. I am thinking that the command should be something like:
Code:
ls -l | grep 'date/time range' | mv /folder
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
View 5 Replies View RelatedAnyone have a ksh solution to convert julian date to gregorian date?
View 6 Replies View RelatedWhen I clall the "update manager" it tells me if my system is up-to-date or new updates are available. Lets assume I update my system now (I disabled automatic updates).
Then (in a couple of days or weeks) I start the Update Manager again and it tells me again that new updates available. How can I find out now when the last time was when my system was "up-to-date" (=when a complete, successful update took place)?
Is there soemwhere an entry which shows this date?
how and where to find the linux installation date in machine, is there are any logs,file, date time stamp.
let us say centos 5.x or 4.x fedora if talk about
Can one perform an installation of CentOS 5 (5.4) so that the system is up-to-date at the time of the first boot (i.e. Anaconda will pull and install the 'latest' versions of the packages directly, and the user needn't run `yum update` | `yum upgrade` after the system has been installed)?
If this is doable at all, is it possible to accomplish without making use of a personally custom-crafted-and-hosted repository (i.e. can one of the official CentOS mirrors be used)?
Also, I'm not talking about creating an install DVD containing the latest versions of the packages, but rather, if the netinstall media can be used to perform this particular type of installation.
Is it possible to find programs that were installed on a specific date or within a specific date range? If so, how?
View 6 Replies View RelatedI am new to Scripting. I am trying to find out particular file is modified in last one hour or not in script and then if that file is modified in last one hour i need to copy that file to another directory.Can any one please provide me how to check the file is modified in one hour or not?
View 3 Replies View RelatedI'm migrating a custom RHEL5.5 install DVD to RHEL6 and am having some trouble with the Kickstart script. All things work great with 5.5 but if just copying it over to use with version 6 some things don't work. For example creating a user, doesn't create his home directory, neither automatically nor when using --homedir option. Another example when creating logical volumes I used to use the --percent option with RHEL5.5 which worked perfectly but for some reason crashes under 6. When I set the size to fixed then it works. Does anyone have any idea where I can find up to date documentation for kickstart configuration under RHEL6?
View 4 Replies View RelatedI want to install the media-player vlc 1.0.6 on my system.My Linux version is Linpus. The package's name ended with tar.bz2 so I tried to install it from source. I don't know how to update the glibc run.time and I don't understand the alternative suggestion. What should I do?
View 3 Replies View Relatedi'm trying to make a script that gives one output if a directory in /home is older than one month, and another if the directory is less than one month old. I looked around and saw that the creation date for directories isn't stored, or at least i couldn't find it? How is this possible to do then?
View 2 Replies View RelatedI was following these instructions[url] and it asks to have this installed yet I am unable to find the file/package.
yum install -y php-pear-Date-Holidays <-- (for now, this package is available in the EPEL repo)
I have followed the instructions on this link [url]
To install ELRepo for RHEL5, CentOS-5 or SL5:
And
How to get the package iinstall and/or recommended steps for horde
[URL]... contains a great table comparing the implementation of IPv6 features in several Linux distributions. the problem is that it is over 4 years old. where I could find a more up-to-date resource?
View 4 Replies View RelatedI need to find the list of file being tagged by user jack starting from a given date.Eg:Tag Name:lcc_dev_p1User: jackDate: >= 2011-03-02can some done tell me what is the cvs command for this.Should the below command give the correct outputcvs log -R -S -N -rlcc_dev_p1 -d">=2011-03-13" -wjack > /tmp/output.txt
View 1 Replies View RelatedI'm looking for a method for modifying some jpg photo files last modification date with the corresponding timestamp creation date of each file.The reason is that shotwell import pictures in folders according to last modification date which is stupid on my opinion.
View 2 Replies View RelatedAs a photographer I'm constantly taking photos and storing them in folders. Now occasionally I'm using two cameras (either for different settings or an assistant is also taking photos) which means that for one event I can have differently named images.Both cameras have the same time set (which always helps in Windows) but in Ubuntu when trying to sort my folder by date taken I can't.The options I'm given are to sort them: Manually, by Name, by Size, by Type, by Modification date and by Emblem.Now none of those are helpful to me once I've done a few edits to the images.So please if anyone knows, how do you organise a folder with images taken on different cameras by Date Taken rather than Date Edited?
View 3 Replies View RelatedI run three Ubuntu machines - work, home, and a laptop. All were on 9.04, and I was able over the past week to painlessly upgrade the first two to 9.10.Today I fired up the laptop for the first time in a while and saw that it hadn't had the upgrade yet, so went to the upgrade manager. It had a bunch of package upgrades it wanted to do, so I let it. But there was no option to go to 9.10, not even after catching it up on updates. It just says the system is up to date. Clicking "check" again just gives the same message. It doesn't seem to know that there's a koala out there.
Settings on the update manager say to accept normal releases, so it's not an LTS thing. Yes, it's on 9.04 now according to /etc/apt/sources.list. Network connectivity is good.What might I be missing that I ought to look for?
I have Ubuntu 9.10 on my PC and am really happy with it. As you know, support ends in April. I can't upgrade to 10.04 or 10.10, tried several times, it just doesn't like my old video card. Money is really tight now, so can't upgrade the video card either OK, now my question. Are the repositories still available after the support date?
View 5 Replies View RelatedI've installed 2 different distros on this old dell laptop, install goes fine, i run everything...reboot a few times. perfect, but the next day, when i boot up, i get " date/time" not set, if i choose to ignore that...computer won't boot... is this a battery issue ? the battery wont hold a charge, so i only run it with power pack...works great, but when i turn this on tomorrow, I'll get that w=error messy.
View 4 Replies View RelatedI download an installer game from utorrent after its finished I can`t find the installation or should I say setup...I just a picture of that game and some CD1 MDF and MDS file and CD2 MDF and MDS file
View 8 Replies View Relatedis there any method to know the date of the installation of the system?
View 2 Replies View RelatedI've had a search through the forums but can't find what I'm looking for, I'm sure it's there and apologies for asking something that has undoubtedly been answered before. I'm running numerous Ubuntu 8 LTS web servers, with mysql, rails, nginx, etc etc and I was after some advice about keeping these servers up to date with security updates. I'm on the ubuntu security announcements mailing list, but I was hoping to find a way to automate the installation of any security updates.
View 3 Replies View Related