📄 hel2
字号:
.h0 "\na.\n+b User Access Control".sh LOGINSign on as a new user..opVerify password and establish user's individual and group (project) identity..opAdapt to characteristics of terminal..opEstablish working directory..opAnnounce presence of mail (from MAIL)..opPublish message of the day..opStart command interpreter or other initial program..sh PASSWDChange a password..opUser can change his own password..opPasswords are kept encrypted for better security..sh NEWGRPChange working group (project).Protects against changes to unauthorized projects..h0 "\na.\n+b File Manipulation".sh CATConcatenate one or more files onto standard output.Particularly used for unadorned printing, forinserting data into a pipeline,and for buffering output that comes in dribs and drabs..opUsable as filter..sh CPCopy one file to another.Works on any file without distinction as to contents..sh PRPrint files with title, date, and page number on every page..opMulticolumn output..opParallel column merge of several files..opUsable as a filter..sh OPROff line print.Spools arbitrary files to the line printer..opUsable as a filter..sh SPLITSplit a large file into more manageable pieces.Is occasionally necessary for editing (ED)....sh EDInteractive context editor.Can work on single lines, blocks of lines, or all pattern-selectedlines in a given range..opFinds lines by number or pattern..opRandom access to lines..opAdd, delete, change, copy or move lines..opPermute or split contents of a line..opReplace one or all instances of a pattern within a line..opCombine or split files..opEscape to Shell (U\s8NIX\s10 command language) during editing..ne3.opPatterns may include:.in +2specified characters,.brdon't care characters,.brchoices among characters,.brrepetitions of above,.brbeginning of line,.brend of line..in -2.opAll operations may be done globally onevery pattern-selected line in a given range..sh ManualIntroductory manual for ED..sh DDPhysical file format translator,for exchanging data with foreignsystems, especially OS/360..sh STTYSets up options for optimal control of a terminal.In so far as they are deducible from the input, theseoptions are set automatically by LOGIN..opHalf vs. full duplex..opCarriage return+line feed vs. newline..opInterpretation of tabs..opParity..opMapping of upper case to lower..opRaw vs. edited input..opDelays for tabs, newlines and carriage returns..h0 "\na.\n+b Manipulation of Directories and File Names".sh RMRemove a file.Only the name goes away if any other names are linked to the file..sh LN\*(lqLink\*(rq another name (alias) to an existing file..sh MVMove a file..opUsed for renaming files or directories..sh CHMODChange permissions on one or more files.Executable by files' owner..sh CHOWNChange owner of one or more files..sh CHGRPChange group (project) to which a file belongs..sh MKDIRMake a new directory..sh RMDIRRemove a directory..sh CHDIRChange working directory..sh FINDProwl the directoryhierarchy findingevery file that meetsspecified criteria..opThese criteria are understood:.in +2.nfspelling of name matches a given pattern,creation date in given range,date of last use in given range,permissions,owner,characteristics of device files,boolean combinations of above..in -2.fi.opAny directory may be considered to be the root..opSpecified commands may be performed on every file found..sh DSWInteractively step through a directory,deleting or keeping files..h0 "\na.\n+b Running of Programs".sh SHThe Shell, or command language interpreter.Provides \*(lqbackground\*(rq and macro capability whenrun with a file of commands as input..br.opAny executable object file is automatically a command..opRedirect standard input or standard output..opOperators to compose compound commands:.in+2`;' for sequential execution,.br`|' for functional composition with output of onecommand taken directly as input to another running simultaneously,.br`&' for asynchronous operation,.brparentheses for grouping..in -2.opSubstitutable arguments..opConstruction of argument lists from all file namessatisfying specified patterns..opCollects command usage statistics..sh IFA conditional statement for Shell programs..opString comparison..opQuerying file accessibility..sh GOTOA \*(lqgo-to\*(rq statement for Shell programs..sh WAITWait for termination of asynchronously running processes..sh EXITTerminate a Shell program.Useful with IF..sh ECHOPrint remainder of command line.Useful for diagnostic or prompting data in Shell programs,or for inserting data into a pipeline..sh SLEEPSuspend execution for a specified time..sh NOHUPRun a command immune to hanging up the terminal..sh NICERun a command in low (or high) priority..sh KILLTerminate named processes..sh CRONA table of actions to be taken at specified times..opActions are arbitrary Shell (SH) scripts..opTimes areconjunctions of month, day of month, day of week, hourand minute.Ranges are specifiable for each..sh TEEPass data between processes and divert a copy into a file.Used as a filter..h0 "\na.\n+b Status Inquiries".sh LSList the names of one, several, or all files in one or more directories..opAlphabetic or temporal sorting, up or down..opOptional information:size,owner,group,date last modified,date last accessed,permissions,i-node number..sh FILETries to determine what kind of information is in a file by consultingthe file system index and by reading the file itself..sh DATESystem date routine.Has considerable knowledgeof calendric and horological peculiarities..opPrint present date, day of week, local time..opMay set U\s8NIX\s10's idea of date and time..sh DFReport amount of free space on file system devices..sh DUPrint a summary of total space occupied by all files in a hierarchy..sh WHOTell who's on the system..opList of presently logged in users,ports and times on..opOptional history of all logins and logouts..sh PSReport on all active processes attached to a terminal..opGives all commands being executed..opCan also report on other terminals..opExtended status information available:.in+2.nfstate and scheduling info,priority,attached terminal,what it's waiting for,size..fi.in -2.fi.sh TTYFind name of your terminal..sh PWDPrint name of your working directory..sh PFEPrint type of last floating exception..h0 "\na.\n+b Backup and Maintenance".sh MOUNTAttach a device containinga file system tothe tree of directories.Protects against nonsense arrangements..sh UMOUNTRemove the file system contained on a devicefrom the tree of directories.Protects against removing a busy device..sh MKFSMake a new file system on a device..sh MKNODMake an i-node (file system entry) for a special file.Special files arephysical devices,virtual devices, physical memory, etc..sh TPManage file archives on magnetic tape or DEC tape..opCollect files into an archive..opUpdate DECtape archive by date..opReplace or delete DECtape files..opTable of contents..opRetrieve from archive..sh DUMPDump the file systemstored on a specified device, selectively by date, or indiscriminately..sh RESTORRestore a dumped file system,or selectively retrieve parts thereof..sh SUTemporarily become the super user with all the rights and privilegesthereof.Requires a password..sh DCHECK.sh ICHECK.sh NCHECK.sp -2Check consistency of file system..opGross statistics:.in +2.nfnumber of files,number of directories,number of special files,spaced used,space free..in -2.fi.opReport of duplicate use of space..opRetrieval of lost space..opReport of inaccessible files..opCheck consistency of directories..opList names of all files..sh CLRIPeremptorily expunge a file and its space from a file system.Used in putting damaged file systems together again..sh SYNCForce all outstanding I/O on the system to completion.Used to shut down gracefully..h0 "\na.\n+b Accounting".in0.spThese routines use floating point.The timing information on which the reports are based can bemanually cleared or shut off completely..sh ACPublish cumulative connect time report..opConnect time by user or by day..opFor all users or for selected users..sh SAPublish Shell accountingreport.Gives usage information on each command executed..opNumber of times used..opTotal system time, user time and elapsed time..opOptional averages and percentages..opSorting on various fields..h0 "\na.\n+b Inter-user Communication".sh MAILMail a message to one or more users.Also used to read and dispose of incoming mail.The presence of mail is announced by LOGIN..sh WRITEEstablish direct terminal communication with another user..sh WALLWrite to all users..sh MESGInhibit receipt of messages from WRITE and WALL.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -