General :: Copied Files In Nfs Does Not Show The Right Time-stamp?

Mar 3, 2011

I have two systems running on linux. system one is running with RHEL 5.4/X86_64 hardware, system two is running with RHEL 5.3/i686 hardware. One filesystem is shared from system two and mounted as NFS on system one. Now when i do a copy from local filesystem to the NFS share from system one,it shows as follows

Quote:

-rw-r--r-- 1 xkinved rbak1 30 Mar 3 2011 king

But if i do copy with -p option then it shows right time stamp. Both machines are running with slight(minutes) different in time. Does this could be cause for this problem? The problem is happening while i do FTP from some other machines too.

View 3 Replies


ADVERTISEMENT

General :: Use History Command To Show The Time Stamp?

Apr 13, 2011

I want to use history command to show the time stamp, user id, ip address, command logged

View 1 Replies View Related

SUSE :: Renaming Multiple Files - Adding Date / Time Stamp In Name

Feb 1, 2009

I am trying to rename multiple files in a directory and add the Date/Time stamp to the file name.

Example:
file1.txt
file2.txt
file3.txt

Renamed to
2009_02_01_21.txt
2009_02_02_21.txt
2009_02_03_21.txt

I am able to accomplish this using this command:
mv file1.txt "`date +%Y_%m%d_%H`".txt

But I want to automate this task, I have many files to process and I dont want to do them one by one.

I already tried this but it does not work
mv *.txt "`date +%Y_%m%d_%H`".txt

View 2 Replies View Related

General :: Folder In Window Its Not Showing The Folder Time Created Time Stamp?

May 20, 2011

I was created one folder in linux with current time was 1978(For example). I was moved this folder to usb(FAT32 file format).While seeing this folder in window its not showing the folder time created time stamp, because the USB file system only support the year after 1980 . But again i am putting the same folder in linux ,its showing the correct time stamp.How is it possible? Because FAT32 only supports timestamp after 1980, but still its showing 1978 in linux system

View 7 Replies View Related

General :: Change File Time Stamp (Bash Script)?

Jan 6, 2010

I need some help recovering from a "slight" screwup. We just moved 3 TB of data from one RAID Array to another. Low lever archive files. This was done with a regular cp (for some reason) and now we have lost all the timestamps on the files, and we urgently need to get the timestamps back on these files.

We are running Ubuntu 9.10 Server and we have mounted the following

1. /mnt/old-raid ##Old raid from the old server
2. /mnt/new-raid ##New raid on the server

I know we can read out the timestamp on the old server using the command stat -c '%Y' <<filname>>

I know we can change the timestamp of the file, using the command touch -d '<<date>>'

To get from the stat -c date to the input date in touch we need to use date -d @<<timestamp>> +'%d %b %Y %R'

So my question is, how can I create a loop that will list all files in a folder, get their timestamp and update the old timestamp with the new?

View 4 Replies View Related

Ubuntu :: Make Folder With A Time Stamp For A Name?

Jun 2, 2010

I need to make a few folders, but I need the fold name to reflect the time which they were created. For example: if I create a folder at on 2010.06.03 at 13:01:34 then I would need a file name something similar to the following 20100603_130134. In addition, could the same method be used for .tar files? I would like a bash script which I can run to perform the following; however, I am not familiar with scripting in Linux yet.

View 2 Replies View Related

Programming :: Appending A Time Stamp To Prstat

Aug 9, 2010

I am trying to run prstat for an extended time, outputting to a file and appending a time-stamp to each line (running on Solaris 10). I have tried this:

prstat -c -U usrname 60 480 | nawk '$1=="PID" { "date +%d%m%Y-%H:%M:%S" | getline d ; close("date") } { print d,$0 }' > /tmp/fileName &

this only appends the time the command was started to each line. I would like to fix this so that a new time is recorded every 60 seconds.

View 1 Replies View Related

Ubuntu :: Pdftk Stamp Function - Stamp A Pdf Document

Apr 8, 2010

I've been trying to use the stamp function in pdftk. I'm trying to stamp a pdf document with a pdf I generate on the fly that contains the current date. Below is what I have so far. The problem is that pdftk says "Error: failed to open stamp PDF file". the file is in the same dir as execution, I've made it 776, I've specified full paths... nothing seems to work. I've even tried the "prompt" option and specify it manually but I get the same behavior. This is pdftk version 1.4.

Script (named "go"):
Code:
# date in YYYY-MM-DD format
umask 0
# create a variable with a formatted date
TODAY=`date +%Y-%m-%0e`;
[Code].....

View 3 Replies View Related

Ubuntu Multimedia :: Change Kaffeines Time Stamp?

Jan 20, 2010

How do I change the time stamp on videos that I record so that they say what DAY they were recorded instead of just the DATE? I can't find the config file which I assume would be the place to look.

View 1 Replies View Related

Ubuntu Multimedia :: Rename All JPEGs In A Folder By EXIF Date & Time Stamp?

Feb 24, 2011

In the Windows world where I came from, Irfanview freeware easily renamed a large folder of JPEG photos by EXIF time & date stamps, appending a unique number if the time and date stamps were the same. Is there an equivalent rename-by-EXIF information batch command in Ubuntu 10.04 Lucid? For example, change (based solely on EXIF information): FROM:DSC_0001.JPG TO:20110224_09:34:56am.JPG

View 9 Replies View Related

General :: In What Order Are Files And Directories Copied When Using Cp -R?

Jun 26, 2011

If I execute the following command:
cp -R /myfiles /mydestination


If myfiles contains several sub-directories and files, in what order will they be copied? For example, directories might be named 0123a, 9993c, myfolder, xfolder.

They are not copied in alphabetical order OR in date order OR in the order they appear when using a standard ls command as far as I can tell, so what actually does determine the order?

Edit:
I am trying to determine the order that the cp command uses in order to determine how far along my copy command made it before it stopped. For example, I was hoping to be able to determine it copied 3 of the 4 directories successfully.

View 1 Replies View Related

General :: Files Not Getting Copied Fully To Usb Drive?

May 10, 2011

I tried copying files from my ubuntu computer to a usb drive. But the file transfer doesn't complete and gets stuck at some point.

Ex: If I try to copy a file having a size of 622MB, the files transfer runs smoothly till maybe 617MB and then doesn't proceed at all.

View 1 Replies View Related

General :: Can't Rename/move Files From OSX That Were Copied From NTFS

Jun 29, 2010

I recently had data recovered and it was sent back to me on what I think is an NTFS drive. I copied all the files over to a file share I have on a Linux box, that's ext4. Now I have that share mounted on my OSX machine, and I can't move or rename most of the files. However, in a couple cases I was able to rename a folder after the third try. Another time I was able to rename a folder once, but not again. All the permissions are showing up the same on the command-line -- I can't see any differences between the permissions on any of the files/folders. Note that I can create new folders and add files no problem, and then rename and move those all I want.

View 5 Replies View Related

General :: Cannot Browse Files Downloaded Or Copied Across Network

Jan 9, 2010

I have ran into a permissions problem. It seems that any file I have created with Fedora I can browse to in Firefox. I cannot browse to files that I have downloaded from the internet or copied locally across our network. I changed file permissions to 755 and 777 for these files. I even thought that maybe it was the php file content that was causing the issue. So, I copied the file content from file 2 into file 1. File 1 was the file I could always browse to since I created it in Fedora. I could still browse to file 1 after it had file 2's content.

I look at the permissions and they appear the same for both files. I am not sure why I cannot open the other files. I downloaded phpMyAdmin. I cannot hit any of these files in a browser. I also copied some files from a a backup location we have internally. I cannot browse to any of these files either. I used chmod 777 filename. Even after doing that I could not hit any of the files. I moved the files into my document root directory ( /var/www/html ) and I still cannot browse to these files.

View 3 Replies View Related

General :: Detect Which PC (IP Address) Copied Files In A NFS Folder?

May 17, 2011

I have iomega appliance, which is based on Debian distribution. There is an NFS share that I have created which is without password. Since it is without password, there are some viruses copied. I want to find out which IP address is the source of these files. In other words, I want to know which PC is copying these infected files on the NFS share

View 2 Replies View Related

General :: Set Default Permissions For Files Moved Or Copied To A Directory?

Jan 25, 2011

How to set the default file permissions on ALL newly created files in linux - but differs in important ways:

I want all files created in (or copied to or moved to) a certain directory to inherit a set of default permissions that is different from the system default.

Rationale: The directory in question is the "intake hopper" for an application. Users in a group place files in the directory, and the app (running under another user id in the same group) takes them and processes them. The problem is that the owner of each file placed in the directory is the user that placed it there, and the permissions are defaulting to "rw-r--r--"; I want to change that to "rw-rw----". The app doing the intake can't do that explicitly, because the user id the app is running under doesn't own the file in question, and the default permissions don't allow the app to chmod on the file! Obviously, the user could do a chmod after putting the file there - but I want to keep the "drop" by the user as simple as possible. (These folks are not linux-literate, they just drag and drop the files from their windows desktop to a (Samba) network share - i.e. they don't even know they are interacting with a linux system.)

umask seems too powerful: I don't want to set default permissions for every file created anywhere by these users - just those created in (or placed in) this directory.

View 3 Replies View Related

General :: Scp With Range Of Files To Be Copied To - From - Or Between Different Hosts - Error - No Such File Or Directory

Jun 27, 2011

Working fine: ==> scp my_log-bin.01393[0-9] root@192.168.103.66:/backup/ error - No such file or directory: ==> scp my_log-bin.0139[30-99] root@192.168.103.66:/backup/

View 4 Replies View Related

Server :: Rotating Files That End With A Date Stamp?

Oct 10, 2010

how I should go about rotating files that end with a date stamp. This is the configuration I have to rotate my Apache access files, but it is not working:

/var/log/httpd/access_log.* {
compress
daily
rotate 1
copytruncate
missingok
notifempty
}


The files are created with a date extension like the ones below:

[Code]....

View 6 Replies View Related

General :: Change The Creation Time Of All A Folder's Files To The Current Time?

Jun 19, 2011

Under a Linux shell, how can I change the creation time of all a folder's files to the current time?

View 2 Replies View Related

Ubuntu :: After Log In Takes Long Time To Show Desktop, Monitor Events At Log In Time?

May 24, 2011

It takes me a while to log in the splash screen just sits there for ages before i get to the desktop. Never used to be this slow and I'm not sure why. Firstly, I'm running Ubuntu 11.04, standard DE. I do have conky starting up in a script but it has the & at the end of the line so I didn't think this would cause it (or is there some special case for log in time on how & is treated?). However as a test I will comment out the line in the script and see if it is the cause.

However just for general knowledge and in case that isn't the problem, how does one go seeing what is happening during the time from when one log's in and the desktop is displayed? Is there some kind of log that shows the date/time that can be enabled or is there a debug mode that can be enabled somehow via special keys or maybe from grub?

View 8 Replies View Related

Ubuntu :: Can't See Files Copied In Terminal?

Apr 3, 2010

I copied several folders over to a thumbdrive in Terminal, but I can't see the folders when I view the thumbdrive on any other system (tried a machine with xp and another with Ubuntu).I went back to the original machine where I did the coping and viewed the thumbdrive's contents in Terminal, and it shows everything to be there that I had copied. Is there a step I'm missing? I copied using cp -r. The reason I'm doing this is that the Ubuntu installation on the original machine is freezing up and I just want to backup some of the files before reinstalling Ubuntu.

View 1 Replies View Related

Ubuntu :: Copied Mp3 Files Are Corrupted

Aug 18, 2011

I have all of my music in mp3 form on an external HD. When I copy it to my home folder for use in Banshee 2.0, some of the music files become corrupted.When these copied mp3s are played, they have annoying, intermittent distortion throughout some of the songs. In an effort to try and isolate the problem, played one of the distorted songs directly from the file on the external HD, and it played flawlessly. I then downloaded Clementine and had the exact same distortion on the playback from the copied file, and then no distortion from the external HD file.

So at this point, it seems like the mp3 are getting messed up when they are being copied from the external HD to the computer.I am using a USB 2.0 port for the file copying.

View 8 Replies View Related

General :: Show Output On Terminal And Save To A File At The Same Time?

Jul 1, 2010

I am using:

user@unknown:~$ sudo command -option > log

to save the results of "command" to the file "log", but I'd like to also get the result on the terminal, is this possible?

I am using ubuntu 10.04 lts.

View 3 Replies View Related

General :: Ping To Show The Requests 'time Out' Instead Of Omitting The Output?

Apr 12, 2011

How can I make the Linux ping to show the requests 'time out' instead of omitting the output?

Just like the Windows version of ping.

View 3 Replies View Related

General :: Bash - Show Prints And At The Same Time Redirect It To A File?

Jul 12, 2010

I have this script in the past for csh: Code: ./a.out |& tee prints.txt which will redirect all printfs in the C program to the prints.txt file and at the same time show them in the console. How do you do this in bash? I have seen this, [URL] but it does not work for my bash and sh shells. It says:

Code: -bash: syntax error near unexpected token `&' and
Code: -sh: syntax error: unexpected "&"

View 2 Replies View Related

Ubuntu :: Command To Check Files Where Copied?

Oct 23, 2010

I am trying to write a script to copy all of my photos to my backup drive, to finish it i want to scan the backup and check that all of the folders and photos are there. is there a command in linux to do this (theres one (or two) for everything else!!!)

View 1 Replies View Related

Ubuntu :: Some Flac Files Not Copied Properly

Feb 23, 2011

Lately I've tried rsync for backing up my home partition to an external drive, but I've run into some problems with some flac files (there might be other problematic files though, these are the ones I know of). The external drive is formatted in ntfs. Now, when adding my whole music directory (within my home directory) first as a library to VLC and then copying to the playlist, some files are not playable. I discovered this at work in windows, and resaved all the flac files using ex falso to skip windows incompatible characters. The problem persisted though. I tried the same thing in VLC in Ubuntu, and got again a set of non-playable files, partly, but not completely, overlapping the set of files that were not playable in windows. The original files (on my internal drive) are playable in VLC in Ubuntu. What to do (except to go back to cp instead of rsync, rsync is faster, but if it doesn't copy correctly, it's not worth it)?

View 2 Replies View Related

General :: How To Get Time From Power On System To Show User Login View

May 16, 2011

I want to get the time from power on system to showing user login view in Linux, how to do? Can it work only with shell?

View 2 Replies View Related

OpenSUSE :: Cloning Files - Copied To The Other System Automatically?

Mar 8, 2010

I have multiple OpenSuSE 11.2 systems. With some files being on one system I would like to have another computer to have the files as well. Is there a way to have the files copied to the other system automatically? FTP is one way but it is too cumbersome. I am thinking of something like disk or directory mirroring. Does OpenSuSE have something like that?

If it was real time mirroring that would be better. I.e if a write to one file on one system is done, then this would be done on the other system with the same directory/file.

View 3 Replies View Related

Ubuntu :: File Permissions For Copied Files On External HDD?

Mar 24, 2010

I'm sure that the issue I'm having is easily solvable once I gain some understanding about copying files - and file permissions in Ubuntu. Here's my situation:

I have an external HDD where I like to back up some files (I mess around with distros on my main machine and feel less stressed knowing the important stuff is backed up). I have an ext4 partition on the external drive where I have copied files, both through the terminal (cp 'filename' /dev/sdc3) and by drag and drop (gnome-terminal).

The problem is, once the files are copied, most are inaccessible. I can view them, but some directories and individual files say I do not have permission to open them. Others are accessible. This is from the same user profile that copied them.

How do I see what's going on? More importantly, how do I make files on external drives available to any user or OS (that can handle ext4)? I want to make sure that if my whole system gets effed that I could still do a reinstall of my OS and then access those backup files.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved