UNIX For Dummies [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

UNIX For Dummies [Electronic resources] - نسخه متنی

John Levine, Margaret Levine Young

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید






Time Is Money — Steal Some Today!

All UNIX systems have internal clocks. You can ask the system what the date and time are with the date command:


date

UNIX responds with this information:

Thu Dec 4 15:43:50 EST 2003
Many options enable you to tailor the date format any way you want. Don’t waste your time. UNIX has an idea about the time zone too, and even does daylight savings time automatically.
You can schedule things to be done later by using the at command. You say something like this:


at 5:15pm Jul 4
sort -r myhugefile -o myhugefile.sort
pr -f -2 myhugefile.sort | lp

Then you press Ctrl+D to indicate that you finished giving commands.

You give the at command and specify a time and date. Then you enter the commands you want to run at that date and time. Press Ctrl+D on a separate line to tell UNIX that you’re finished listing tasks. In this example, we sort a huge file and then print it in two columns, all on the Fourth of July, when presumably no one is around to complain that it’s taking too long. If you omit the date, UNIX assumes that you mean today if the time you give is later than the current time; otherwise, UNIX assumes that you mean tomorrow.

Any output that normally goes to the terminal is sent back to you by electronic mail, so you should at least skim Chapter 17 to find out how to read your mail.

/ 213