08-16-2007
changing date
Hi,
I want to create one user who has right to change the date in linux,
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to change the date of the UNIX server at work to 20 aug 2001.
How do I do this?
And will this affect any databases running, or do I need to bring all databases down? (2 Replies)
Discussion started by: JBX
2 Replies
2. Shell Programming and Scripting
Hi,
Is there any way to change one date format to another ?? I mean I have a file having dates in the format (Thu Sep 29 2005) ... and i wud like to change these to YYYYMMDD format .. is there any command which does so ?? Or anything like enum which we have in C ??
Thanks in advance,
... (5 Replies)
Discussion started by: Sabari Nath S
5 Replies
3. Post Here to Contact Site Administrators and Moderators
In my shell script i have a variable which stores date in the format of YYYYMMDD. Is there any way to format this value to MM/DD/YYYY.
Thanks. (1 Reply)
Discussion started by: nasirgondal
1 Replies
4. UNIX for Dummies Questions & Answers
Dear Expert,
Is there a command to do that in Unix?
In such a way that we don't need to actually "write" or
modified the content.
-- monkfan (4 Replies)
Discussion started by: monkfan
4 Replies
5. Shell Programming and Scripting
Hi, I have a column in a table of Timestamp datatype. For Example : Var1 is the column 2008-06-26-10.10.30.2006. I have Given query as date(var1) and time (var1) I got the file as in the below format :
File1:
Col1 Col2
2008-06-02|12.36.06
2008-06-01|23.36.35
But the problem is... (7 Replies)
Discussion started by: manneni prakash
7 Replies
6. Shell Programming and Scripting
How to change a date stored in a variable to YYYYMMDD.
Variable output is in DD-MON-YY,required format is 'YYYYMMDD'
Thanks,
Sud (1 Reply)
Discussion started by: sud
1 Replies
7. Shell Programming and Scripting
the following was taken from a perl script:
my $date = strftime "%B %d %H:%M:%S", localtime;
how can i modify it so this date outputs the date in the form of the date of the messages file. for example:
Sep 20 11:48:44
As it is right now, the perl script outputs the date like this:
... (1 Reply)
Discussion started by: SkySmart
1 Replies
8. Shell Programming and Scripting
How can i make the date command output yesterday's date, current date and the date 4 days ago, in the following format:
2012-10-03
code:
date +% ???? (3 Replies)
Discussion started by: SkySmart
3 Replies
9. Shell Programming and Scripting
how do i change the following to show me what the date was 7 days ago?
date +%Y-%m-%d (1 Reply)
Discussion started by: SkySmart
1 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
I have a CSV file which is as below. Basically I need to take the year column in it and find if the year is >= 20152 . If that is then I should subtract all values by 6. In the below example in description I am having number mentioned as YYWW so I need to subtract those by -5. Whereever... (8 Replies)
Discussion started by: arunkumar_mca
8 Replies
LEARN ABOUT DEBIAN
swaplabel
SWAPLABEL(8) System Administration SWAPLABEL(8)
NAME
swaplabel - print or change the label or UUID of a swap area
SYNOPSIS
swaplabel [-L label] [-U UUID] device
DESCRIPTION
swaplabel will display or change the label or UUID of a swap partition located on device (or regular file).
If the optional arguments -L and -U are not given, swaplabel will simply display the current swap-area label and UUID of device.
If an optional argument is present, then swaplabel will change the appropriate value on device. These values can also be set during swap
creation using mkswap(8). The swaplabel utility allows to change the label or UUID on an actively used swap device.
OPTIONS
-h, --help
Display help text and exit.
-L, --label label
Specify a new label for the device. Swap partition labels can be at most 16 characters long. If label is longer than 16 charac-
ters, swaplabel will truncate it and print a warning message.
-U, --uuid UUID
Specify a new UUID for the device. The UUID must be in the standard 8-4-4-4-12 character format, such as is output by uuidgen(1).
AUTHOR
swaplabel was written by Jason Borden <jborden@bluehost.com> and Karel Zak <kzak@redhat.com>.
AVAILABILITY
The swaplabel command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
SEE ALSO
mkswap(8), swapon(8), uuidgen(1)
util-linux April 2010 SWAPLABEL(8)