`
taotaogo1980
  • 浏览: 83666 次
社区版块
存档分类
最新评论

solaris essential

阅读更多

    <div>1: default shell:? Korn Shell
<div>2: ONC+ : Open Network Computing
<div>3: NIS : Network Information Service???? provides network information name services to clients
<div>4: change from command-line login to X ,type "exit"?? then then press Return
<div>5: ls -F? check the file or directory type.
<div>6: cp -i?? prevent overwritting existing files.
<div>7: vi -R? ?open file in read-only mode.?? vi -r to recover file..
<div>????view?=?vi -R?? view filename????view file in read-only mode .
<div>8: <span lang="ZH-CN">useradd -u 512 -g 1 -c 'SA-Xu, Collin' -d /export/home/xcollin -m -s /usr/bin/bash xcollin</span>
<div><span lang="ZH-CN">9: In solaris system,? change the ip address:??edit?below three files?? /etc/inet/hosts /etc/inet/networks /etc/inet/netmasks </span>
<div><span lang="ZH-CN">10: vi usage,???</span>
<div><span lang="ZH-CN">?delete the specified line?? :5,18d???? delete 5 to 18 lines.</span>
<div><span lang="ZH-CN">?U? undo all the changes at the current lin. </span>
<div><span lang="ZH-CN">?u? undo the previous change.</span>
<div><span lang="ZH-CN">?:2,5 co?8?? copy? line 2?- 5? and put them after line 8.</span>
<div><span lang="ZH-CN">?:3,7 m 10??move line 3?- 7 ?and put them after line 10</span>
<div><span lang="ZH-CN">?:set ic search ignoring? case</span>
<div><span lang="ZH-CN">?:set noic search to be case sensitive.</span>
<div><span lang="ZH-CN">?:set all displays all the set argument.</span>
<div><span lang="ZH-CN">to create an automatic customization? for all of your vi sessions, complete the flowing commands. (also applying for linux.)</span>
<div><span lang="ZH-CN">????1) create a file in your home directory called .exrc</span>
<div><span lang="ZH-CN">????2) enter the set variable? without preceding colon.</span>
<div><span lang="ZH-CN">11: ls [a-d]*?? list all files started with a - d.</span>
<div><span lang="ZH-CN">??????ls [bp]*??? list all files started with b or p</span>
<div><span lang="ZH-CN">??????ls -n? lists detail information? like ls -l.? but show the uid and gid instead of owner's name.</span>
<div><span lang="ZH-CN">??????-rw-r--r-- 1 512 1 270 Nov 8 11:13 dat</span>
<div><span lang="ZH-CN">???????</span>
<div><span lang="ZH-CN">12: umask?? file default value 666?? directory default value 777</span>
<div><span lang="ZH-CN">???????if the umask is 022? then the new file?default value is 644? new directory value is 755</span>
<div><span lang="ZH-CN">??????? you can't create a default file value 777.? the most privilege you create a file is 666.</span>
<div><span lang="ZH-CN">13: grep </span>
<div><span lang="ZH-CN">????grep -i? search?for both uppercase and lowercase characters</span>
<div><span lang="ZH-CN">????grep -n display the line number? in the file.</span>
<div><span lang="ZH-CN">????grep -c count the lines that match the pattern</span>
<div><span lang="ZH-CN">????grep -v display the lines that do not match the pattern</span>
<div><span lang="ZH-CN">????grep -w search for the expression as a complete word. ignoring? substrings? meet the expression.</span>
<div><span lang="ZH-CN">????grep -l? to search the names of the files that contain the pattern</span>
<div>?
<div><span lang="ZH-CN">????grep '^no'? /etc/passwd?????to?find all the lines that begin with??the letter 'no' in /etc/passwd file</span>
<div><span lang="ZH-CN">??? grep 'A...n' /etc/passwd???? grep the line that?start with 'A' then follows?3 charactor,?then end with 'n'</span>
<div>????grep 'adm$'??/etc/group?????? grep lines?that? the end of lines?is ?'adm'??
<div>???????????????????????????????????????????????????
<div><span lang="ZH-CN">????egrep?: extended grep?</span>
<div><span lang="ZH-CN">????egrep '[a-z]+body'??/etc/passwd???To search for?all lines that?have words followed by?'body'</span>
<div><span lang="ZH-CN">????egrep '(Network|uucp) Admin' /etc/passwd?? To search lines that contain 'Network Admin'or'uucp Admin' </span>
<div><span lang="ZH-CN">????</span>
<div><span lang="ZH-CN">14: find</span>
<div><span lang="ZH-CN">find -atime +5???? files?that have not been accessed for more than 5 days.?? </span>
<div><span lang="ZH-CN">find -atime -5????? files?that have been accessed in 5 days.? </span>
<div><span lang="ZH-CN">find -mtime +5????files that have not been modified for more than 5 days</span>
<div><span lang="ZH-CN">find -mtime -5???? files that have been modified in 5 days</span>
<div><span lang="ZH-CN">15: parent process and child process</span>
<div>
<span lang="ZH-CN">when one process creates another,the first process is considered to be parent process,the new process </span><span lang="ZH-CN">is called the child process.</span>
<div><span lang="ZH-CN">while the child process runs, the parent process waits.when the child process finishes its task, it informs the parent process,the parent process then terminates the child process.</span>
<div><span lang="ZH-CN">16: ps -ef </span>
<div><span lang="ZH-CN">UID????PID????PPID????C????STIME????TTY????TIME????CMD</span>
<div><span lang="ZH-CN">root????291????1????????0????OCT 23?????????????0:18????/usr/lib/saf -t 300</span>
<div><span lang="ZH-CN">??</span>
<div><span lang="ZH-CN">UID: user name of the owner process</span>
<div><span lang="ZH-CN">PID: the process id</span>
<div><span lang="ZH-CN">PPID: the parent process id</span>
<div><span lang="ZH-CN">C:cpu utilization for scheduling.(Not used now)</span>
<div><span lang="ZH-CN">STIME:the time the process started</span>
<div><span lang="ZH-CN">TTY:the controlling terminal for the process.?'?' indicates that the process started without use of a terminal</span>
<div><span lang="ZH-CN">TIME:the cumulative execution time for the process</span>
<div><span lang="ZH-CN">CMD: the command name</span>
<div>?
<div><span lang="ZH-CN">17: pgrep?</span>
<div><span lang="ZH-CN">pgrep -l ssh????????????????????????pgrep -lf ssh</span>
<div><span lang="ZH-CN">948????sshd??????????????????????????948????/usr/lib/ssh/sshd<br>2967???sshd?????????????????????????2967??/usr/lib/ssh/sshd<br>2966????sshd????????????????????????2966??/usr/lib/ssh/sshd</span>
<div>?
<div><span lang="ZH-CN">pgrep -lt pts/2?????display the terminal pts/2's process??(must be 'lt' not 'tl')</span>
<div><span lang="ZH-CN">pgrep -lU root???????displays the root's process (U=user) (must be 'lU' not 'Ul')</span>
<div>?
<div><span lang="ZH-CN">18:job</span>
<div><span lang="ZH-CN">a job is a process that the shell can manage.Because jobs are processes,so each job has an associated PID. The shell also assigns each job? a sequential job ID number.</span>
<div><span lang="ZH-CN">jobs?? list the current jobs</span>
<div><span lang="ZH-CN">fg %n??bring a background job to run in the foreground??????n is the job ID???? not the pid</span>
<div><span lang="ZH-CN">bg %n? bring a foreground job to run in the background??? First you need to press <span style="text-decoration: underline;">ctrl+z</span> to stop the foreground process,then you use <span style="text-decoration: underline;">bg %1</span> to let the command run in b</span>
<div>?
<div><span lang="ZH-CN">ctrl+z? stops a foreground job.</span>
<div><span lang="ZH-CN">kill %1 terminate job 1</span>
<div>?
<div><span lang="ZH-CN">19:function</span>
<div><span lang="ZH-CN">typeset -f??? list all? functions</span>
<div><span lang="ZH-CN">use one command to execute a series of command. you can use the following three methods.</span>
<div><span lang="ZH-CN">1): alias???? alias info='uname -a; id; date'?????? info</span>
<div><span lang="ZH-CN">2): function??? function infor {?uname -a; id; date;?}???? infor??????? (before date, there's a semicolon)</span>
<div><span lang="ZH-CN">3): shell script?? </span>
<div>?
<div><span lang="ZH-CN">20:set</span>
<div><span lang="ZH-CN">set -o? show current option settings.</span>
<div><span lang="ZH-CN">set -o noclobber?? set noclobber option on</span>
<div><span lang="ZH-CN">set +o noclobber?? set noclobber option off</span>
<div>?
<div><span lang="ZH-CN">21: jar???</span>
<div><span lang="ZH-CN">?the usage equals to tar, jar?package file and compress it.?? </span>
<div><span lang="ZH-CN">jar? cvf? file.jar?? file??</span>
<div><span lang="ZH-CN">jar? xvf??file.jar</span>
<div><span lang="ZH-CN">----------------------------------------------------------------</span>
<div><span lang="ZH-CN">compress -v? filename???? file.Z??????????????? compress file??????????? -v option shows the percentage compressed</span>
<div><span lang="ZH-CN">zcat file.tar.Z|tar xvf -?????????????????????????????view?file.tar.Z without?uncompressing it.??? </span>
<div><span lang="ZH-CN">uncompress?? file.tar.Z???????????????????????????? restore file</span>
<div><span lang="ZH-CN">------------------------------------------------------------------</span>
<div><span lang="ZH-CN">another command to compress files : gzip?? </span>
<div><span lang="ZH-CN">gzip?? file.tar????----> file.tar.gz</span>
<div><span lang="ZH-CN">gunzip file.tar.gz? ---------> file.tar</span>
<div><span lang="ZH-CN">gzcat? file.gz????? view the file.gz</span>
<div><span lang="ZH-CN">gzact file.tar.gz?| tar xvf -???? view file.tar.gz</span>
<div><span lang="ZH-CN">-------------------------------------------------------------------</span>
<div><span lang="ZH-CN">zip: compress and archive files</span>
<div><span lang="ZH-CN">zip? file.zip? file1? file2? file3...????? zip file 1 ,2 ,3 to file.zip</span>
<div><span lang="ZH-CN">unzip file.zip?????????????????????????????? unzip file</span>
<div><span lang="ZH-CN">unzip -l file.zip?????????????????????????????view file.zip</span>
<div>?
<div>?
<div>?
<div><span lang="ZH-CN">22: rlogin</span>
<div><span lang="ZH-CN">rlogin vszcdevload05?? </span>
<div><span lang="ZH-CN">rlogin -l nagios vszcdevload07?? use another user to login to host.</span>
<div>?
<div><span lang="ZH-CN">23:profile</span>
<div><span lang="ZH-CN"><span style="font-family: Times New Roman;">[size=small;]add the environmental variable<br>1:edit /etc/profile<br>2: add this two line?<br>PATH=$PATH:/usr/sfw/bin:/usr/ccs/bin:.<br>export PATH<br>3:check PATH<br>echo $PATH [/size]</span></span>
<div>
<span lang="ZH-CN"></span>?
<div><span lang="ZH-CN"><span style="font-family: Times New Roman;">[size=small;]edit specified user's profile,for example edit oracle's profile[/size]</span></span>
<div><span lang="ZH-CN"><span style="font-family: Times New Roman; font-size: small;">1:ls -a </span></span>
<div>
<span lang="ZH-CN"><span style="font-family: Times New Roman; font-size: small;">2:vi .profile?</span></span><!--WizHtmlContentEnd-->
<div>?
<div><span lang="ZH-CN">24: time zone configuration? command (both for linux and solaris)</span>
<div><span lang="ZH-CN">tzselect???? </span>
<div>?
 
   
     
       
     
   
   
 
0
0
分享到:
评论

相关推荐

    Solaris10_essential

    ### Solaris 10 基础知识精要 #### 概述 Solaris 是由 Sun Microsystems 开发的一款先进的 UNIX 操作系统,以其强大的稳定性和安全性而闻名于世。Solaris 10 作为该系列的一个重要版本,在企业级应用和服务领域占据...

    Solaris Sun内部培训资料

    《Solaris Sun内部培训资料》是一份详尽的IT学习资源,主要涵盖了Solaris操作系统的四个层次:基础(Essential)、中级(Intermediate)、高级(Advanced)以及经验用户指南(Experienced User Guide)。这份资料...

    Unix Commands (Aix Freebsd Hpux Linux Solaris & Tru64)

    Understanding these differences and similarities is essential for managing users and files effectively across different Unix systems. Administrators should refer to specific documentation or manuals ...

    SCSA for Solaris 10 Exam Prep 2 By BILL CALKINS.pdf

    This comprehensive guide, "SCSA for Solaris 10 Exam Prep 2" by Bill Calkins, is an essential resource for individuals seeking to become certified as Solaris 10 system administrators. The book has been...

    Oracle Cluster Essential

    ### Oracle Solaris Cluster Essentials知识点详解 #### 一、Oracle Solaris Cluster概述 - **定义**:Oracle Solaris Cluster是一款由Oracle公司开发的企业级集群管理软件,它为在Solaris操作系统上构建高可用性...

    The Essential Qt 3.3 Class Hierarchy

    这包括但不限于AIX、BSDI、FreeBSD、HP-UX、Irix、Linux、Mac OS X、NetBSD、OpenBSD、Solaris、Tru64、UnixWare以及多个版本的Windows系统。此外,Qt对国际化的强大支持确保了应用程序可以在全球范围内推广,支持...

    Operating systems are an essential part of any computer system.

    4. **Solaris**:一款面向服务器市场的操作系统,特别适合于大型企业的数据中心。 5. **Android** 和 **iOS**:两大主流移动操作系统,分别由Google和Apple开发,主导着智能手机和平板电脑市场。 #### 六、结论 ...

    MPlayer安装手册

    # mv essential-20071007. /usr/lib/codecs # cd /usr/lib # mkdir codecs ``` 2. 解压 `windows-essential-20071007.zip` 文件,并将其内容移动到 `/usr/lib/win32` 目录。同样,如果目录不存在,需要先创建: ```...

    running rac on oracle vm server for sparc 2.0

    To validate the performance gains achieved through the use of Oracle VM Server for SPARC and Oracle RAC, benchmarking and testing are essential. Organizations should conduct comprehensive tests to ...

    gems+simics实验报告

    1. 更新系统并安装必需软件,如bison、flex、build-essential等。 2. 配置环境变量,设置GEMS、SIMICS_INSTALL、SIMICS_EXTRA_LIB和PYTHONPATH路径。 3. 解压并复制GEMS和Simics的安装文件到相应目录,然后执行安装...

    804下安装Oracle.docx

    - **Oracle 11g官方支持情况**:Oracle 11g数据库虽提供Linux x86版本,但仅支持Red Hat、Novell和Solaris等操作系统,不包括Debian或Ubuntu系列。 - **Ubuntu 8.04 (Hardy Heron)**:Ubuntu 8.04 LTS Hardy Heron...

    unix环境高级编程[第二版]

    Solaris 9; and Darwin 7.4.0, the FreeBSD/Mach hybrid underlying Apple's Mac OS X 10.3.As in the first edition, you'll learn through example, including more than 10,000 lines of downloadable, ANSI C ...

    UNIX环境高级编程第二版.chm 英文版 Advanced Programming in the UNIX® Environment: Second Edition

    Solaris 9; and Darwin 7.4.0, the FreeBSD/Mach hybrid underlying Apple's Mac OS X 10.3.As in the first edition, you'll learn through example, including more than 10,000 lines of downloadable, ANSI C ...

    Addison.Wesley.Advanced.Programming.in.the.UNIX.Environment.Second.Edition.chm

    Solaris 9; and Darwin 7.4.0, the FreeBSD/Mach hybrid underlying Apple's Mac OS X 10.3.As in the first edition, you'll learn through example, including more than 10,000 lines of downloadable, ANSI C ...

    操作系统英文教学课件:Chapter 4 Threads.ppt

    In conclusion, understanding threading is essential for developing efficient and responsive applications in today's computing landscape. By leveraging the benefits of multithreading while mitigating ...

    sap 服务器端安装手册

    - **SAP R/3 4.6B**: 需要SAP Kernel Oracle/Installation/AIX, Linux, Solaris (号码5100911),以及Oracle/RDBMS8.0.5.X/Linux (号码5100755)。 - **IDE/DB-Export**: 包括六个光盘,号码为5101020-5101021。 - **...

    nginx安装包

    通常,Nginx支持Linux、FreeBSD、Mac OS X、Solaris等操作系统。在Linux环境下,推荐使用Debian或Ubuntu系列,因为它们有完善的软件包管理系统,可以方便地处理依赖关系。 1. **系统准备** - 确保系统是最新的:...

    Teradata Messages (English)

    This document is essential for database administrators and users who need to interpret and understand the system-generated messages, errors, and warnings. #### 二、Teradata Database System ...

    zabbix源码下载地址

    它适用于多种操作系统,包括Linux、Solaris、HP-UX、AIX等,并且可以实现分布式监控及用户更新通知等功能。Zabbix主要由两部分组成:Zabbix Server与可选组件如Proxy、Agent等。其中,Zabbix Server是核心部分,负责...

Global site tag (gtag.js) - Google Analytics