Software :: App To Quickly And Easily Change File Dates?
Aug 14, 2010
I am using Ubuntu 10.04. I wish I could use Nautilus to change file dates, but I guess that does not work.
Is there another file manager, or something, that allows me to do this? I know about the touch command, but that's a little cumbersome for I am trying to do.
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.
Can Linux emulate a USB disk? Why would you want to do this you ask? Say you have a digital picture frame that uses a USB thumb drive you could connect your computer to it and quickly change what was on the screen. I realize you need some special hardware for this as both the PC and the frame would want to be USB masters. But there are USB transfer cables you can buy on-line that do USB master to master connections.
I am using the following command: zgrep -a --text "TEST" * | awk -F"[ .,]" '{sub(".*:","",$6); sub(",.*","",$7); print $1,$6,$7,$10} and getting N3 2009-11-25 20:12:57 TEST N4 2009-11-28 10:42:18 TEST N6 2009-12-01 10:00:24 TEST
If I only want to search the log file after 2009-11-29, what shall I change the command?
How to File Share in Ubuntu 10.04 Easily and using GUI's only.Disclaimer: Sharing files in this way is not secure; so please make sure you only do this on a private network that has been properly secured. Otherwise any user on the network can access and modify your shared files; you have been warned!
1. "Applications" menu ->"Ubuntu Software Center" -> in the search box type "Samba" then install "Samba".Because even though you enabled file share and tried to share the files 10.04 seems to not actually install "Samba". Plus this installs the "Samba" GUI.)2. This step was removed to prevent confusion.3."System" menu -> "Administration" -> "Samba". Enter your password. In the GUI that opens up choose "Preferences" menu -> "Server Settings" then the "Security" tab change the authentication mode to share and the guest account to your user name account. This prevents permission problems later on.4. Choose the "Add a Samba Share"; the green plus icon; browse to the directory you wish to share. Place a check mark in "Writable" and "Visible". Then on the "Access" tab choose "Allow access to everyone".
5. Press OK; now your should be able to see the share from the other computers just choose "Places" menu -> "Network" then either the computer name if it shows up or select "Windows Network" -> "WORKGROUP" ->omputer Name then the Shared folder.Quote:2. Share the selected folder via natuilus, right-click on the folder and choose "Sharing Options" or "Properties" -> "Sharing" Tab. This may be an unnecessary step but at least we know Nautilus has applied the proper permissions for us; on the pop-up choose "Automatically Update Permissions".I hope that this helps as many of you as possible. If anyone has any updates please let me know. I am glad to see that this can finally be done all using GUI's now but it still should be as simple as sharing the folder with the "Sharing Options" selection in Nautilus. There is still work to be done on this in Ubuntu.
I am going to jump on Launch Pad and look for all of the bugs that I can find related to these issues and see if I can contribute what I have learned and maybe I can try to organize some of the bugs to get a collective fix in the works. I will post back any updates.Please If you used my method please note this is not the way it is supposed to be done in 10.04 so you are affected by the bug. Please go to this bug and be counted.
I have been scouring the internet looking for a good solution to reading .pdb eBooks on Linux.It seems that there isn't one.Could you perhaps recommend a good app to either convert the file easily into something readable or (more preferably) an app that can read them?
I am getting little bit difficult in sorting the date ranges which are in a field like:
How make a sort as per the Month and date , i mean result should be as per the month and date wise. If i go for the sort -M , i am not able to get the list as per date of the particular month.
It only occured to me now, but why is it that date listings are not consistent?
ex:
Code:
They are all Month Day Year but one (from that particular extract, there's more), why is the 3rd there one Month Day Time? I know the year is not 2011 because we have not hit august 2011 yet, but what if it's 2009 or 2008? I would not know.
One of my sites got hacked and I'm just trying to figure out what the hacker got into and trying to figure how he got in so I can fix the exploit.
I've got rkhunter installed and regularly do scans immediately before & after updates & if I get warnings about 'file property updates' after the update I use 'rkhunter --propupd' to give me a clean run.I'm about to setup a ubuntu computer for my nan, I want to enable automatic security updates so she doesn't have to do anything to keep her system secure. I was planning on running rkhunter when I go to her house (about once a month) and check the dates in the resulting rkhunter.log warnings with those in the var/log/apt/history.log to see if legitimate updates caused any rkhunter warnings. I've noticed though that the 'Current file modifiation time:' in the rkhunter.log warnings are incorrect.
My system seems to be about 15 days behind the actual date, I've now run rkhunter --propupd so I have no warnings but got this one off another forum post to show what I mean:
Current file modification time: 1283341157 (01-Sep-2010 06:39:17)
I believe that the '1283341157' is the time in some strange format and the date in brackets is what rkhunter thinks it might be in human format.
1) How to interpret the 'strange date format' (1283341157 in the line above)?
2) If there's a way of configuring the date in rkhunter so that they're correct in rkhunter.log?
3) If there's a better way of keeping her system up-to-date & secure, it's her first computer & she's 86 so I think setting up automatic security updates is the way to go, it'll be one less thing to overwhelm her!
I need to compare 2 dates in european format (dd/mm/yyy). date -d<my date> %s command converts date into unix epoch (integer), thus make it easy to compare. The problem is that -d (or --date) option interprets date in US format-ie mm/dd/yyy.
I was going to do a rsync -r -a -z -v -p -e sshto move some files frome server to another, but then realized all I really need are files which have dates starting June 1, 2008 to current. Is there a way to have rsync only sync those files?he directory structure that's my source goes all the way back to 2004.
A script to generate random dates. It uses the year range 2006-2009, and truncates every month of the year to an ordinary February's 28 days, but otherwise it's pretty solid and safe.
I'm new to Ubuntu Linux but have many years on windows platform. Please can someone help me with how to change the following items.
No.1 I would like to change the HORRIBLE!! YAK!! brown background color behind the word Ubuntu in the start up screen when the machine loads up (before the login). I have located the image file for this which I have found to be: /usr/share/images/xsplash/bg_2560x1600. jpg but the OS says that root is the owner and that I don't have permission to change this. So how can I change this for a color I do like.
No.2 I would also like to change the login dialogue screen style. I know this is possible but again I'm fumbling to see how I can do this. I have tried with the start up manager but every attempt fails, the settings don't take. Once again I suspect permissions are at the bottom of the problem?
No.3 Would like to have a colorful splash screen image on boot up, I've managed to remove the old one (small white 3 ring ubuntu logo on black background) but havent been able to install or replace with a new one. Its been incredibly frustrating, I'm feel sure I'm missing something simple here. Wondering if its permissions yet again?
Anyone who can offer help on any of the above, guidance or advise me would be much appreciated. Please bear in mind that I'm still very much feeling my way with Linux so keep it simple.
I have tried to find the solution for my problem on this site and other sites but haven't found a good enough answer yet. Maybe some of you can help me out here?What i need is a script (bash preferrably) that can delete directories based on a date in its dirname.For example.I have a bunch of directories that is named
I am having squid proxy server running on OpenSuSe 10.2 I noticed when I generate report it just shows me last date log file.Although /var/log/squid contains logs of all previous dates.I really cant remember which file to modify so that I can see all dates reports in html when I use following command Quote: cat access.log | /home/user/squint-0.3.10/squint.pl /home/user/report<date>
where I can find a list of Fedora 9 kernel updates (i.e. the updates that come through yum update) along with the dates they were released? I'd like to know when the last kernel I have installed (2.6.25.14-108.fc9.x86_64) was publicly released.
I'm writing a loganalysis application and wanted to grab apache log records between two certain dates. Assume that a date is formated as such: 22/Dec/2009:00:19 (day/month/year:hour:minute) Currently, I'm using a regular expression to replace the month name with its numeric value, remove the separators, so the above date is converted to: 221220090019 making a date comparison trivial.. but.. Running a regex on each record for large files, say, one containing a quarter million records, is extremely costly.. is there any other method not involving regex substitution? here's the function doing the convertion/comparison
We have quite a few SEO clients who require multiple IPs which are all from different class c allocations. (10 - 50 IPs) used for projects lasting weeks to months at a time. Since we don't have connected IPs in ranges we can't use the range scripts but I don't know of a way to easily add a long list of individual IPs. These are CentOS servers, by the way
Can someone show me a simple method to find out number of days between 2 dates?
Example: How would I find the number of days between 25-12-2003 to 25-12-2010? Could someone write a line of code that takes in the two dates and outputs the number of days? Or is there a program that can do this?
I know of websites that do this but I'd also like an offline method.
When the computer is on... we assign a date and time... My question 9is how is the system automatically adjusting time when i start my machine even months after...
I am running webcam under Ubuntu 9.04 and I want to upload the images it captures to a server via ftp and have every image have a date and time in the filename. But I can't get this to work.From reading the man page for webcam it appears that I should be able to specify file = "webcam_%Y-%m-%d_%H:%M:%S.jpeg" and have it parsed so I get something like webcam_2010-01-05_10:54:23.jpeg but webcam is just uploading an image with an unparsed filename. So instead of getting a series of images on the server, I just get the most recent image (with the older images being overwritten every 1800 seconds). I know I could write a script on the server to rename the files as they are uploaded and put it on a cron but this seems to be something webcam should be able to handle.Here is my .webcamrc config file:
[grab] device = /dev/video0 text = "webcam %Y-%m-%d %H:%M:%S"