欢迎来到天天文库
浏览记录
ID:40578825
大小:63.00 KB
页数:7页
时间:2019-08-04
《UNIX基本命令》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、UNIX基本命令1.uname-aprintnameofcurrentsystem显示当前系统名OMC%uname-aSunOSsomcmib215.5.1Generic_103640-19sun4usparcSUNW,Ultra-1SunOS---操作系统名somcmib21---节点名5.5.1---版本号sun4u---硬件名sparc---处理器型号SUNW,Ultra-1---硬件平台名2.idreturnuseridentify显示用户名OMC%iduid=110(omcadmin)gid=110(omc
2、)用户名为omcadmin,组名为omc3.who--whoisonthesystem显示目前登录的用户OMC%whoomcadminconsoleJun2113:57(:0)omcadminpts/2Jun2113:58omcadminpts/5Jun2114:27(somcmmi1211)omcadminpts/4Jun2114:26omcadminpts/3Jun2113:37(133.162.31.101)4.who-rdisplayrunlevel显示运行级别OMC%who-r.run-level3Jun1
3、908:3030S5.pwd-returnworkingdirectoryname显示当前工作目录名OMC%pwd/home/omcadmin76.lslistcontestsofdirectory显示目录内容OMC%lsAnyangXtermLog.a025Xdead_letterlocal.profileFORMSXtermLog.a025nflash.sqlmib_1510.expHebicheckflash.outja.atrtmpOMCprocedure.doccheckversion.outja.cfgu
4、pgardePuyangcmutil_useloadversionupgradeUNTITLEDdb_cktab.outlocal.cshrcversion.sqlXtermLog.a00Ajdbimport.outlocal.loginOMC%ls-la
5、moretotal794drwxr-xr-x11omcadminomc1024Jun2114:27.drwxr-xr-x10rootother512May2516:29..-rw-------1omcadminomc418Jun2113:57.Xauthority
6、-rwxr--r--1omcadminomc3305Jun2100:41.Xdefaults-rw-r--r--1omcadminomc223May2210:01.ab_library-rw-rw-r--1omcadminomc30Jun1512:35.audiorc-rwxr-xr-x1omcadminother90Apr1219:18.cshrc-rw-rw-r--1omcadminomc474Jun517:50.desksetdefaultsdrwxr-xr-x12omcadminomc512Jun2113:5
7、7.dt-rwxr-xr-x1omcadminomc5398Apr1417:03.dtprofile-rwxr--r--1omcadminomc6382Jun2100:36.dtwmrc-rw-rw-rw-1omcadminomc23Jun717:47.lastdir-rwxr-xr-x1omcadminother90Apr1219:18.login-rwxr-xr-x1omcadminother93Apr1219:18.logout-rwxr--r--1omcadminomc5057Jun2100:34.mwmrc
8、-rw-r--r--1omcadminomc144Apr1218:33.profilelrwxrwxrwx1omcadminomc29Jun2114:27.xinitrc->/usr/gsm/current/env/.xinitrcdrwxrwxr-x3omcadminomc512May2410:21Anyangdrwxrwxr-x3omcadminomc512May3116:40FORMSdrwxrwxr-x3omcadminomc512May2411:33Hebi--More--7.cdchangeworking
9、directory改变工作目录OMC%cd/home/omcadminOMC%cdtmp/home/omcadmin/tmp8.mkdirmakedirectories建目录OMC%mkdirtestdirOMC%cdtestdir/home/omcadmin/tmp/testdir79.rmremovedirectoryentries删除目录
此文档下载收益归作者所有