12-15-2005
type date to see the current date
i.e. %> date
Thu Dec 15 10:33:56 PST 2005
Then, to change it, type this:
%> date --set='Thu Dec 15 11:33:56 PST 2005'
Quote:
Originally Posted by Sirius
what command must i use to change time ?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi, I am pretty new to the Solaris world. Just installed the version 8 and found that the time is off. I am in the Central time zone. In the beginning, the date and time was off by a day. After changing the /etc/default/init, there is no avail. The date is now correct but the time is still 5 hours... (7 Replies)
Discussion started by: conflansun
7 Replies
2. UNIX Desktop Questions & Answers
I need to change the time on my SUN box, it is five minutes fast. (4 Replies)
Discussion started by: michelemcdonald
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Can someone tell me how to change time inside red hat linux machine as root?
ThanX! (1 Reply)
Discussion started by: whatisthis
1 Replies
4. UNIX for Dummies Questions & Answers
I have already updated the DST change but my system time is about 10 minutes off. How do i set the time in the AIX 5.3?
Thanks
Dave (1 Reply)
Discussion started by: rocker40
1 Replies
5. Solaris
The time of our Solaris server now is slowly more 20 seconds.
How can we change it ? (3 Replies)
Discussion started by: anhtt
3 Replies
6. AIX
Hi all
We are currently using AIX 5.3, we reuquire to change the time according to the daylight saving scenario. We are using the internal clock and are not synced with ntp server. Can any one please tell me how to do that without effecting the processes running on the servers? (2 Replies)
Discussion started by: masquerer
2 Replies
7. Shell Programming and Scripting
Hi
I want to match time hr:mm and change to mm:hr
please let me know how to do that in perl (2 Replies)
Discussion started by: lakshmikant
2 Replies
8. AIX
Hi Guys ,
I see a weird problem with one of the AIX Machine, The time is changing randomly on the server. The seconds part of the time is what is the problem which is jumping on a uneven order and coming back to the original state after some time and again the same.. I have collected the time... (8 Replies)
Discussion started by: kkeng808
8 Replies
9. Debian
Hi all,
I want change the time settings from EST to IST by using command line in Debian os. but it is not taken. Can any body show me the how to change the time settings by using command line.
Thanks, (1 Reply)
Discussion started by: mastansaheb
1 Replies
CHRT(1) User Commands CHRT(1)
NAME
chrt - manipulate the real-time attributes of a process
SYNOPSIS
chrt [options] prio command [arg]...
chrt [options] -p [prio] pid
DESCRIPTION
chrt sets or retrieves the real-time scheduling attributes of an existing pid, or runs command with the given attributes. Both policy (one
of SCHED_OTHER, SCHED_FIFO, SCHED_RR, SCHED_BATCH, or SCHED_IDLE) and priority can be set and retrieved.
The SCHED_BATCH policy is supported since Linux 2.6.16. The SCHED_IDLE policy is supported since Linux 2.6.23.
The SCHED_RESET_ON_FORK flag for policies SCHED_RR and SCHED_FIFO is supported since Linux 2.6.31.
OPTIONS
-a, --all-tasks
Set or retrieve the scheduling attributes of all the tasks (threads) for a given PID.
-b, --batch
Set scheduling policy to SCHED_BATCH (Linux specific).
-f, --fifo
Set scheduling policy to SCHED_FIFO.
-i, --idle
Set scheduling policy to SCHED_IDLE (Linux specific).
-m, --max
Show minimum and maximum valid priorities, then exit.
-o, --other
Set policy scheduling policy to SCHED_OTHER.
-p, --pid
Operate on an existing PID and do not launch a new task.
-r, --rr
Set scheduling policy to SCHED_RR (the default).
-R, --reset-on-fork
Add SCHED_RESET_ON_FORK flag to the SCHED_FIFO or SCHED_RR scheduling policy (Linux specific).
-v, --verbose
Show status information.
-h, --help
Display usage information and exit.
-V, --version
Display version information and exit.
USAGE
The default behavior is to run a new command:
chrt prio command [arguments]
You can also retrieve the real-time attributes of an existing task:
chrt -p pid
Or set them:
chrt -p prio pid
PERMISSIONS
A user must possess CAP_SYS_NICE to change the scheduling attributes of a process. Any user can retrieve the scheduling information.
NOTES
Only SCHED_FIFO, SCHED_OTHER and SCHED_RR are part of POSIX 1003.1b Process Scheduling. The other scheduling attributes may be ignored on
some systems.
AUTHOR
Written by Robert M. Love.
COPYRIGHT
Copyright (C) 2004 Robert M. Love
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
taskset(1), nice(1), renice(1)
See sched_setscheduler(2) for a description of the Linux scheduling scheme.
AVAILABILITY
The chrt command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux June 2010 CHRT(1)