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


ADVERTISEMENT

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

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

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

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

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 View Related

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

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

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 :: 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 Servers :: VPN Shared Folder / Make A Folder?

Aug 31, 2010

I am attempting to make a shared folder for people that VPN into the network. This folder needs to be accessible to windows and mac machines. So far I have the VPN through ppptd working. I just don't know how to make a folder. I feel like this should be fairly easy. I am using Lucid Lynx server edition.

View 1 Replies View Related

General :: Computer Time Difference At Windows / Make The Time The Same?

Apr 13, 2011

My computer has different time when booting to linux or Windows.How to make the time the same?My computer time is 10:57pm Apr 14 when booting to linux.My computer time is 2:57am Apr 14 when booting to Windows Vista Home Premimum SP2.Both OS are set to the same time zone (GMT-5. Eastern Time US & Canada).

View 5 Replies View Related

General :: How To Make Public Folder Within Private Folder?

Sep 21, 2010

My Linux username is "virchanza" and my group is "virchanza".How do I make a publicly-accessible folder within my private home folder?

View 3 Replies View Related

Programming :: Make A New Folder For Each File In A Particular Folder

Mar 28, 2011

I been using linux for a while, but I havent had the time to really learn it. Something Id like to get more familiar with is bash so here is a simple example of something I would like to do:

I have a directory full of files. For each file in the directory create a new subdirectory with each files name.

I tried this:

#im already in this directory
aaa=./*
for a in $aaa
do mkdir $a
done

One of the problems is that there are spaces () and - in the filenames so I get many subfolders with names like "-" which i don't want.

I tried stuff like:
aaa=./*
for a in $aaa
do mkdir "'"$a"'"
done

This of course also did not work.

Additional I tried just creating a folder with the name of one of the files and I got this:

mkdir: cannot create directory `(audio) - R56339.EXE': File exists
Well yeah a file exsists with that name, but I want to create a folder- why is there a conflict?

Just to be clear here are the contents of this folder:
~/Desktop/LAB/Media/Drivers - (Image Deployment)/Optiplex_GX260/XP> ls
(audio) - R56339.EXE (NIC-Onboard-Intel) - R54402.EXE
(Modem-datafax-V92) - R54403.EXE OEM_Applications

[Code].....

View 1 Replies View Related

Ubuntu Servers :: Setup Real-time (or Near Real-time) Folder Synchronization Among 2+ Servers

Mar 23, 2010

what the recommended way to set up real-time (or near real-time) folder synchronization among 2+ servers. I looked a rsync but that doesn't sound real-time and it looks like its something that you might put in a cron once an hour.

View 1 Replies View Related

Ubuntu :: Launcher - Each Time Go To Open A Folder - Vlc Starts Up

Nov 6, 2010

I tend to watch the odd movie, and always use vlc. As such, one time I checked the box so that vlc would open by default. now however each time I go to open a folder, vlc starts up! How can I undo this?

View 2 Replies View Related

General :: How To Append Time To Folder

Apr 9, 2010

i just want to create a folder with current time.

For example.

foldername_09042010 How do i modify mkdir or write script to do this?

View 6 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

Ubuntu Security :: .encryptfs Folder Is Taking Up So Much Space - Getting Notifications Every Time Log In

May 20, 2011

When I reinstalled ubuntu I chose to encrypt my home folder (something that i've never done before) but now that I know it doesn't really make a difference i'd like to decrypt it because the .encryptfs folder is taking up so much space i'm getting notifications every time I log in.

View 7 Replies View Related

General :: Copy To A New Directory And Rename With Date Stamp

Oct 25, 2010

Newbie 1st post here. Trying to find the most efficient way to copy a file to a different directory and rename it with a date stamp extension. Looking to accomplish this with one command if possible.

File = make_file
Full path /home/user1/bin/scripts/make_file

would like to move to the following directory /home/user1/bin/scripts/archive/

I'm trying to find out how to use command substitution along with the date command that when I copy the file to the archive directory it gets renamed with a time stamp extension. It should look something like "make_page_12:00:00-24-10-2010" I've tried a few different combinations using the cp and mv commands but can't seem to get it to work the way I want to.

View 3 Replies View Related

Ubuntu :: Make User Cannot Go Out Of Folder?

May 12, 2010

I have users logging via ssh, how to make the user to cannot go out of his account folder?Reason:user should not look into other user folders?

View 2 Replies View Related

Ubuntu :: Slow - Opening A Folder Takes A Long Time To Open Nautilus

Nov 26, 2010

I have been using ubuntu for a while and i like it a lot, im a web developer and i have windows xp installed in virtual box, i moved completely to linux and just use windows to test in ie, it had been a while since i didnt use windows and i had to use in the last few days and noticed how much faster it is, the thing that bothered me the most is when opening folders in the desktop or the recycle bin, in windows its instant, in ubuntu opening a folder takes a long time to open nautilus, is this normal or is my installation bad, any comments are appreciated, i dont want to abandon ubuntu, i really like it but it really bothers me that nautilus is so slow to open.

View 9 Replies View Related

Software :: Upload Documents On Site (mostly Pdfs) With Watermark-stamp?

Jun 15, 2011

I have the following issue: I want to upload some documents on my site(mostly pdfs) with watermark and as far my status is: I have managed to get my watermark in:

transparent png
pdf format

>> When it is a text/pdf I use a script using pdftk, which merges the pdf version of watermark to the pdf document (success)

>> When it is a scanned document(pdf) if I use pdftk, it only works if I apply the watermark as stamp (foreground not background). But in this case the watermark overlaps the original document despite the fact that watermark has the right opacity.... (fail) So the only solution is to apply a transparent watermark. So the question is:How to make a pdf transparent Or how to apply watermark from png file I tried adobe acrobat with wine and it applies the pdf watermark as stamp(foreground) with right opacity so I suppose it was a kind of bug maybe from pdftk, but I would like a command like way to do it so that I can make a script.

View 3 Replies View Related

Ubuntu :: How To Make Time & Date Persistent

Aug 26, 2010

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?

View 3 Replies View Related

Ubuntu :: How To Make Folder Icon To Appear Bigger

Jan 24, 2010

I've made some of my own icons in Gimp and saved them as .pngs. The problem is, when I use them they always appear smaller than the system default icons. Is there no way to make them as the same size as the system icons? I read somewhere that GNOME (which is what I use) uses .png .svg and .xpm. I am only able to save as .png with GIMP, is there a way to get .svg and .xpm extension capabilities with GIMP?

These are the icons (only two):
1. HJ-Split Folder
2. Blood Frontier Folder

Is there maybe a specific way to make folder icons that I am not following? Using Ubuntu 9.10, Desktop edition.

View 5 Replies View Related

Ubuntu Multimedia :: How To Make AVI From VIDEO_TS Folder

Jan 6, 2011

I used DVD::RIP to make an AVI out of a VIDEO_TS folder, however it compressed it from 4gb to 1gb and the quality is uh.. kind of bad. How can I make an AVI out of a VIDEO_TS "video folder" without losing much quality? Size of the file doesn't matter.

View 1 Replies View Related

Ubuntu :: Make A Certain Folder Not Display Thumbnails?

Feb 14, 2011

I have a WebDAV server at home with at folder that I want to mount on my Ubuntu computer at work over the Internet. Everything works fine if I just use dav://user@server:port in Nautilus so I tried adding it to fstab (using davfs2) and managed to get it to mount fine.

The problem is that when mounted using fstab Nautilus thinks that it is a lokal folder and downloads images and movies to create thumbnails/previews, something that it doesn't do when just using dav://. This uses a lot of bandwith everytime I'm trying to access a folder with any media. I'm wondering if there is any way to exclude my entire /media/nas folder from showing thumbnails?

View 2 Replies View Related

Ubuntu :: Make A Password Protected Folder?

May 22, 2011

Im a Total begginer when it comes to Ubuntu , and i was wondering if i can make a hidden folder or a password locked folder / How To If So

View 3 Replies View Related

Ubuntu :: How To Make Imagemagick Convert Things One At A Time

Mar 18, 2010

How do I make imagemagick convert things one at a time? I know how to make imaggemagick convert all pages of a pdf into individual jpeg files by storing it all in the RAM at once but if there isn't enough RAM, this will use swap like crazy and be suuuuuuuper slow.

Here is the command for the "crazy swap-using" way:

convert --units PixelsPerInch -density 150x150 filename.pdf filename.jpg

View 3 Replies View Related







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