Ubuntu :: Determine The Last File Access Time?
Jan 5, 2011
Is there a bash command that I can use to determine the last file access time? I know about -atime option for the find command, but I want to doublecheck to make sure that I'm doing this correctly (the output when I use find -atime isn't what I expect).
View 4 Replies
ADVERTISEMENT
Nov 24, 2010
I am trying to modify the file access time in a Python routine I have. I have I believe the correct code for this but have a greater issue. Looking at a random file in my home directory I can see it was last accessed yesterday (I didn't open this file yesterday) so it was presumably my virus scan. No problem there Now I have opened the file today,rescanned the file for viruses and read the file in Python and the file access time remains the same!I have checked the access time by right clicking on the file and choosing Properties, using "ls -lu", and using os.stat(path) in Python.
View 9 Replies
View Related
Sep 1, 2011
Is there a way to determine the time of last reboot and open all sessions and/or files that were open with a BASH script?
Oh also on this topic, does anyone know where a good repository of BASH, PERL and other Linux System Scripts are?
View 3 Replies
View Related
Mar 19, 2010
How do I list only access time and file name? For example if I do ls -l --sort=time then
[Code]...
View 5 Replies
View Related
Oct 14, 2010
I am writting a script to allow uploading of certain files. I want to limit the files by their filename and mime type, and by making sure the two match up.The first thing I need to do is make sure I've got all the mime types I need added. I have never done this before, but I understand that 'file' (which is what PHP's mime-type finding is based off of) uses magic databases that tell at which point in the file should have signatures of the filetype.
My trouble started when I was unable to determine the filetype of any of my video files. Currently, I have some .MOV and .MP4 files that I am using to test.
View 4 Replies
View Related
Mar 16, 2009
I see from the netspeed applet that my computer is downloading stuff almost constantly. Not a whole lot, 8b - 700b per second while apparently doing nothing. Some of this is just responding to broadcasts from the router, but surely not all. I would like to be able to determine which programs are accessing the internet over that wireless card, with a view to cutting down on my bandwidth usage. Is there a program that can tell me which ones are doing what at a given time?
View 5 Replies
View Related
Mar 7, 2010
When I try to burn some .flv files onto a DVD iso using K3B, it gives me the message: "Could not determine size of resulting image file"
View 1 Replies
View Related
Jan 19, 2010
I'd like to determine what process has ownership of a lock-file. The lock-files are simply a file with a specific name that has been created.So, how can I determine what process has a particular file open in Linux? Preferably a one-liner type or a particular Linux tool solution would be optimal.
View 3 Replies
View Related
Nov 16, 2010
Multiple dirs full of mp3s All strictly encoded with exactly the same parameters (CBR 128kbps, Joint-Stereo, etc) Is it possible to determine the total playing time (to within ~98% accuracy) by some formula based on the total file size? I say ~98% accurate since ID3 tags do consume a small amount of space.
View 3 Replies
View Related
Nov 30, 2010
i have a folder with 10 files and i would like to determine the size of each file. i was trying the command
Code:
du -sh foldername
but i receive the total size .
View 5 Replies
View Related
Feb 8, 2010
I am writing, well actually enhancing, a script to do a daily backup of important data on my PC to a second hard drive.I wish to tar my home directory to a single file - and will probably use gzip as well.So I decided to work out the correct tar syntax in a terminal first - here is what happened.I opened a terminal window.I cd to a directory not part of my home directory.I issued the command..Quote: tar -cvf mytar.tar /home/ken tar processed a bunch of files, the last being .netrc.I examined the tar file and it contains .netrc.The contents of .netrc are correct.I scrolled back through the list of files in the terminal window and do not see any error messages.I guess the question is... how do I determine what file tripped up the tar process?
View 8 Replies
View Related
Jun 24, 2010
I have the following which works but think there must be a easier one-liner way of doing this which involves not writing to a file but have failed to find something that works This is what I have:
Code:
du -m $i > filesize.txt
FILESIZE=$`cat "filesize.txt" | cut -f1
rm filesize.txt
I then use the FILESIZE to compare to a number.
View 3 Replies
View Related
Sep 27, 2010
how to access current date and time from the system through CMOS in C programmes in Fedora.
View 1 Replies
View Related
Jun 9, 2009
As the title says, I'm looking for a program that will go through all images in a directory tree and determine if they're valid, if they've been corrupted, and (wishful thinking) if they have the wrong extension. Does anything like that exist?
View 7 Replies
View Related
May 10, 2015
I cannot find a bash command: "file" !
It say "-bash: file: command not found"
"file" is used to determine file type on a bash right ? is there a package i have to install ? deprecated ?
I use debian wheezy distro
View 2 Replies
View Related
Apr 14, 2010
In Linux, I'd like to know how to find the file(s) if any which as using a particular sector on the hard drive (ext2/3). There is a similar question here regarding Windows, however I need a Linux command line solution (this is a headless system).
View 1 Replies
View Related
Mar 11, 2011
Is there any way to tell which file or directory this is referencing in particular?
View 8 Replies
View Related
Mar 4, 2010
if there's a tab-delimited file under /usr/desktop, how can I determine the number of rows and columns of the file in shell?And, if told the the 3rd column of the file contains only numerical values and all values in the 5th column are unique, how can I verify these in shell?
View 13 Replies
View Related
Dec 8, 2010
I had only Arch on an HDD.sda2 was "/".Now it's with Windows XP and sda2 is not a root any more but a container partition wich has sda{5,6,7} in it. I configured the dual boot and it works. It finds Arch and boots it, but not completely. Stops after some time and says: unable to determine the file system type of /dev/sda2. FSTAB is configured, sda{5,6,7} are on their places. So I can't boot Arch. XP boots correctly. What do I do with this error?Also it says: try adding rootfstype=your_filesystem_type to kernel command line.
View 4 Replies
View Related
May 11, 2011
I upgraded postfix to 2.8 today after the security bulletin from the list.
now I get the following error:
'postfix/local[2442]: fatal: unable to determine open file limit'
I can receive/send mail, it just wont let me deliver locally
uname output: 2.6.37-1-686 #1 SMP Tue Feb 15 18:21:50 UTC 2011 i686 GNU/Linux
View 2 Replies
View Related
Apr 17, 2010
### TO DO: Determine the report file name based on the source directory name and current date### The report name and thumbnail directory must follow this pattern: source-%j-%H### for example, for pictures in /home/you/pictures, the file name will be: pictures-%j-%H### HINT: Use sed to extract the directory name from the path and combine it with date command output
View 1 Replies
View Related
May 13, 2010
Lucid 10.04, auto upgraded from 9.10, accessed through NoMachine NX from my MacBook Pro 10.6 system.
When I try to access the time settings through the System > Administration > Time and Date menu, all I get is the greyed-out display with the message Not authotized to make changes at the bottom.
With other administration functions, I am asked for sudo-style authorization with my password. That doesn't happen with Time and Date.
View 2 Replies
View Related
Jun 11, 2010
I'd like to be able to limit access to a particular website, based on the time of day. I would also like to be able to password protect this if possible.So for instance, from 7am until 10pm daily, I can access URL... but after 10pm it redirects to 127.0.0.1 or something. And this configuration be protected by only allowing a certain user (other than root) to change the config?
View 7 Replies
View Related
Jun 26, 2010
I managed to install a second hand 10Gb HDD on my old P4. I want to see how I can use this extra disk to speed up Ubuntu 10.04 if possible.
I installed my swap onto this second drive but since I never use swap I can't see any real improvement. Next, I'm considering the creation of a new partition on that disk that would handle /tmp. Could that improve access times?
Finally, what other tricks could I use with this 2nd HDD to speed things up?
View 6 Replies
View Related
Sep 1, 2010
When I try to access a network connected folder bying on etwork->ComputerName->FolderName, I almost always get this message:Unable to mount locationDBus error org.freedesktop.DBus.Error.NoReply: Message did not receive a reply (timeout by message bus)If I click OK and try again a few times, sometimes it will connect and everything is fine after that. If not, I can issue a mount command in the terminal and access the /mnt folder that way with no problems, but clicking Network, I still get the timeout command.
View 1 Replies
View Related
Jan 11, 2010
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.
View 2 Replies
View Related
Aug 31, 2010
I am using cygwin in order to test a bash script that uses the ls -R command. When I use this, the access date of the subfolders are changed, and I need them to remain what they were before the command was run. I don't have access to a legitimate Linux system, so I'm not sure if this is the fault of cygwin or the ls command. The script is being used to find the last access date of all files underneath several subfolders and then return the latest date found in each subfolder as the last access date for that subfolder. For some reason, some of these folders have files in them that are newer than the folder's last access date, so the script is meant to give us a list of the true last access date for these folders.
View 5 Replies
View Related
Aug 12, 2010
I need to goto a folder, open a script file (same file every time). The file has different function calls, I need to comment all other function calls and just un-comment the one I want to use.
#call_1
call_2
#call_3
[code]....
View 14 Replies
View Related
Jan 10, 2010
My ipod (5.5gen) only mounts with write acess every now and then - seemingly at random. I'm not sure what log info I should give you, but here is lspci:
Code:
snak3@Panther:~$ lspci
00:00.0 Host bridge: nVidia Corporation C55 Host Bridge (rev a2)
00:00.1 RAM memory: nVidia Corporation C55 Memory Controller (rev a1)code]....
- More info :I have found that by unmounting in nautilus and then remounting, I can get write access again. I believe this might be the cause of the ipod application floola, although I will do some more troubleshooting and see what else I can find out.
View 1 Replies
View Related
Oct 10, 2010
I have a question about the atime attribute. I wonder why the atime is not updated when the file is read. It is update only the first time the file is read.
For example:
antec:~# touch test
antec:~# stat test
[code]....
View 2 Replies
View Related