Apple Mac OS X Server Command-Line Spezifikationen Seite 1

Stöbern Sie online oder laden Sie Spezifikationen nach Server Apple Mac OS X Server Command-Line herunter. Apple Mac OS X Server Command-Line Specifications Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken

Inhaltsverzeichnis

Seite 1 - Mac OS X Server

Mac OS X ServerIntroduction to Command-Line AdministrationVersion 10.6 Snow Leopard

Seite 2

10Use this chapter to determine when to use command-line tools and to understand the fundamentals of how to use them.A command-line interface (CLI)

Seite 3 - Contents

Chapter 1 Introduction to the Command-Line Environment 11The Command-Line EnvironmentThis section gives some background information about UNIX a

Seite 4 - 4 Contents

Logging In from TerminalTo open Terminal, click the Terminal icon in the dock or double-click the application icon in the Finder (in /Applications/Uti

Seite 5 - About This Guide

Chapter 1 Introduction to the Command-Line Environment 13The following processes and services aren’t running if you boot into single-user mode:D

Seite 6 - Using Onscreen Help

For example, to run the ls command in the current user’s home folder, you could enter the following at the command line and press Return:host:~ mariah

Seite 7 - Viewing PDF Guides Onscreen

Chapter 1 Introduction to the Command-Line Environment 15Specifying Files and FoldersMost commands operate on les and folders, whose locations

Seite 8 - Getting Documentation Updates

Commands Requiring Root or Administrator PrivilegesMany commands used to manage a server must be executed by an administrator user or the root user. F

Seite 9

Chapter 1 Introduction to the Command-Line Environment 17To view a list of options and parameters you can use with the command:Enter the command

Seite 10 - Environment

Not all commands and tools have man pages. Some tools use info pages instead, and some have no documentation at all. For more information about info p

Seite 11 - Accessing the Shell

19Use this chapter to learn about using the command-line by typing in commands.You can use the command-line environment in Mac OS X and Mac OS X S

Seite 12

Apple Inc. K© 2009 Apple Inc. All rights reserved.Under the copyright laws, this manual may not be copied, in whole or in part, without the written

Seite 13 - Closing the Shell

Redirecting Input and OutputFrom the command line, you can redirect input and output from a command to a le, or to another command.Redirect output fr

Seite 14 - Terminating Commands

Chapter 2 Using the Command-Line Shell Interactively 21Using Environment VariablesThe shell uses environment variables to store information, suc

Seite 15 - Specifying Files and Folders

Repeating CommandsTo repeat a command, press the Up Arrow key until you see the command, then make any modications and press Return.Including Paths U

Seite 16

23Instead of entering commands and waiting for their responses, you can compose scripts that are run without direct interaction.This chapter discu

Seite 17 - Using Man Pages

You need to use the chmod tool to indicate to the operating system that the text le is executable (that is, its contents can be run as a program). To

Seite 18 - Using Info Pages

Chapter 3 Scripting the Command Line 25Note: In earlier versions of Mac OS X and Mac OS X Server, system administrators used the watchdog daemo

Seite 19 - Interactively

The rst crontab entry repairs disk permissions for the MacHD volume at 18:30 every day, Monday through Friday:30 18 * * 1-5 diskutil repairPermission

Seite 20 - Correcting Typing Errors

27Learn about using the command-line on computers remotely.If you need to run command-line tools on remote computers, there are tools to help you.

Seite 21 - Using Environment Variables

The remote computer attempts to authenticate the local computer using RSA or ÂDSA certicates. If this isn’t possible, the local computer is prompted

Seite 22 - Repeating Commands

Chapter 4 Connecting to Remote Computers 29To generate the identity key pair: 1 Enter the following command on the local computer:$ ssh-keygen

Seite 23 - Scripting the Command Line

5 Preface: About This Guide5 What’s in This Guide6 Using Onscreen Help7 Documentation Map7 Viewing PDF Guides Onscreen8 Printing PDF Guides8 G

Seite 24

A Key-Based SSH Scripting ExampleA cluster of servers is an ideal environment for using key-based SSH. The following Perl script is a trivial scriptin

Seite 25

Chapter 4 Connecting to Remote Computers 31Be sure this is the correct key before accepting it. If possible, provide users with the encryption k

Seite 26 - Scheduling tasks with launchd

Important: Removing a host key from the known_hosts le bypasses a security mechanism that would help you avoid imposters and man-in-the-middle attac

Seite 27 - How SSH Works

Chapter 4 Connecting to Remote Computers 33Apple Remote DesktopApple Remote Desktop is a software package that’s available separately from Mac

Seite 28

34This chapter discusses some of the most frequently used command-line task.If you’re new to the command-line environment, it helps to understand so

Seite 29

Chapter 5 Common Command-Line Tasks 35For general-purpose work, it’s easiest to deal with one of the text editors included with Mac OS X. If yo

Seite 30 - Updating SSH Key Fingerprints

Saving Text Files for UNIX ExecutionWhen you edit text les for execution by UNIX utilities, you need to save the les properly so that they can be us

Seite 31

Chapter 5 Common Command-Line Tasks 37 Â plutil is a command-line tool that you can use to change a property list into a format you can edit wi

Seite 32

There are many other options for PlistBuddy that are invoked in a similar manner. For information about PlistBuddy, see its man page.Using the defaul

Seite 33 - Apple Remote Desktop

Chapter 5 Common Command-Line Tasks 39Moving and Copying FilesYou can move and copy les locally or remotely using the mv, cp, and scp commands.

Seite 34 - Common Command-Line Tasks

4 Contents23 Chapter 3: Scripting the Command Line23 What is a Shell Script?24 Monitoring and Restarting Critical Services with launchd25 Sc

Seite 35

Compressing and Uncompressing File ArchivesMac OS X and Mac OS X Server use the GNU tar utility to compress and uncompress les and folders. When send

Seite 36 - Editing Property Lists

Chapter 5 Common Command-Line Tasks 41Key Command ActionJ or Down Arrow Scroll down a lineK or Up Arrow Scroll up a lineN Find the next occurren

Seite 37

42Learn how to access hardware-level controls like restarting, shutting down, powering up, and selecting boot options from the command line.This cha

Seite 38

Chapter 6 Accessing Apple Hardware from the Command Line 43Parameter Descriptionseconds The number of seconds before the computer starts after a

Seite 39 - Moving and Copying Files

Manipulating Open Firmware NVRAM VariablesTo manipulate Open Firmware NVRAM variables, use the nvram tool. If you change a value with nvram, the valu

Seite 40 - Viewing File Contents

45The following command line tools are unique to Mac OS X or substantially dierent from implementations on other UNIX platforms. See their man pa

Seite 41 - Backing Up and Restoring

46 Appendix Command-Line Tools Specic to Mac OS XconfigureLocalKDC(1) Generate a LocalKDCCPlusTestRig(1) Runs CPlusTest unit test bundlesCpMa

Seite 42 - Restarting a Computer

Appendix Command-Line Tools Specic to Mac OS X 47javaconfig(1) Get Java conguration information javatool(1) Tool used in building older Java s

Seite 43 - Shutting Down a Computer

48 Appendix Command-Line Tools Specic to Mac OS Xopendiff(1) Use FileMerge to graphically compare or merge le or directories osacompile(1) C

Seite 44

Appendix Command-Line Tools Specic to Mac OS X 49securityd(1) Security context daemon for Authorization and cryptographic operations SetFile(1)

Seite 45 - Mac OS X

5This guide provides a starting point for administering Mac OS X Server using command-line tools.Introduction to Command-Line Administration suppl

Seite 46

50 Appendix Command-Line Tools Specic to Mac OS XSection 4 Man PagesMan pages in section 4 refer to descriptions of special les and devices.

Seite 47

Appendix Command-Line Tools Specic to Mac OS X 51Section 7 Man PagesMan pages in section 7 are miscellaneous pages that don’t belong in any oth

Seite 48

52 Appendix Command-Line Tools Specic to Mac OS Xcoreaudiod(8) Core Audio daemon dirhelper(8) Helper for special directory creationdiskarbitr

Seite 49

Appendix Command-Line Tools Specic to Mac OS X 53kdcsetup(8) Kerberos -- Open Directory Single Sign On kerberosautoconfig(8) Kerberos -- Open D

Seite 50 - Section 5 Man Pages

54 Appendix Command-Line Tools Specic to Mac OS Xmount_webdav(8) Mount a WebDAV lesystemmsdos.util(8) DOS/Windows (FAT) le system utilityna

Seite 51 - Section 8 Man Pages

Appendix Command-Line Tools Specic to Mac OS X 55service(8) Deprecated service_helper(8) Helper program for enabling and disabling servicessetr

Seite 52

Aaccessadministrator 16shell 11, 12, 13SSH service 32user 32accounts, authentication 29administrator, permissions 16Apple Remote Desktop (ARD)

Seite 53

Index 57info tool 18input/output commands 19, 20ipmitool tool 44KKerberos 28key-based authentication 28, 30known_hosts le 31, 32Llaunchctl t

Seite 54

58 IndexUuninterruptible power supply. See UPSUNIX 11, 36UPS (uninterruptible power supply) 43usersaccess control 32authentication 30single-use

Seite 55

6 Preface About This GuideUsing Onscreen HelpYou can get task instructions onscreen in Help Viewer while you’re managing Snow Leopard Server.

Seite 56

Preface About This Guide 7Documentation MapSnow Leopard has a suite of guides that cover management of individual services. Each service may be

Seite 57 - Index 57

8 Preface About This GuidePrinting PDF GuidesIf you want to print a guide, you can take these steps to save paper and ink:Save ink or toner by

Seite 58 - 58 Index

Preface About This Guide 9Getting Additional InformationFor more information, consult these resources: Â Read Me documents—get important updates

Kommentare zu diesen Handbüchern

Keine Kommentare