已閱讀5頁,還剩2頁未讀, 繼續(xù)免費閱讀
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
Linux and SmartOS CommandsTASK / OS Linux SmartOS table key (rh)= Red Hat,Mandrake, SUSE,. (deb)= Debian, Libranet,. (fed)= Fedora (gen)= Gentoo (md)= Mandrake/Mandriva (SUSE)= SUSE Joyent SmartOS You can find an open source versionat managing users useradd usermod userdel adduser chage getent useradd userdel usermod getent logins /usr/sadm/bin/smuser groupadd list hardware configuration arch uname dmesg(if youre lucky) cat /var/log/dmesg /proc/* lshw dmidecode lspci lspnp lsscsi lsusb lsmod (SUSE)hwinfo /sys/devices/* prtconf -v arch -k psrinfo -v isainfo -v dmesg iostat -En prtfru cfgadm -l /etc/path_to_inst read a disk label fdisk -l prtvtoc label a disk cfdisk fdisk e2label format prtvtoc partition a disk parted(if you have it) cfdisk fdisk pdisk(on a Mac) (deb)mac-fdisk(on a Mac)_ (md)_diskdrake format fmthard kernel /boot/vmlinuz* /boot/bootlx (see /etc/lilo.conf or /boot/grub/menu.lst) /kernel/genunix /platform/uname -m/ kernel/unix show/set kernel parameters /proc/* /proc/sys/* sysctl /etc/sysctl.conf sysdef getconf cat /etc/system ndd adb -k loaded kernel modules lsmod modinfo load module modprobe insmod modload unload module rmmod modprobe -r modunload startup scripts /etc/rc* (but may vary) /etc/init.d/ /etc/rc* /etc/init.d/ svcadm svcs start/ stop/ config services (rh)_service (rh)_chkconfig (deb)_sysv-rc-conf svcs svcadm shutdown (& power off if possible) shutdown -Ph now shutdown -y -g0 -i0 halt poweroff shutdown -y -g0 -i5 run levels *=normal states for more detail see /runlevels.html (set in /etc/inittab) 0: halt s,S,1:vendor-dependent 1: single-user 2-5*: multiuser 6: reboot 0: firmware monitor s,S: single-user 1: sys admin 2: multiuser 3*: share NFS 4*: user-defined 5: power-down if possible 6: reboot show runlevel /sbin/runlevel who -r time zone info /usr/share/zoneinfo/ /etc/localtime /usr/share/lib/zoneinfo/ check swap space swapon -s cat /proc/meminfo cat /proc/swaps free swap -s swap -l bind process to CPU taskset (sched-utils) pbind normal filesystem ext2 ext3 ReiserFS zfs(OpenSolaris) file system description /etc/fstab /etc/vfstab create filesystem mke2fs mkreiserfs mkdosfs mkfs zfs file system debugging and recovery fsck debugfs e2undel fsck fsdb clri create non-0-length empty file dd if=/dev/zero of=filename bs=1024k count=desired mkfile create/mount ISO image mkisofs mount -o looppathToIso mountPoint mkisofs;DEVICE=lofiadm -a /absolute_pathname/image.iso ; mount -F hsfs -o ro $DEVICE ACL management getfacl setfacl getfacl setfacl NFS share definitions /etc/exports /etc/dfs/dfstab dfshares NFS share command /etc/init.d/nfs-server reload_(rh)_exportfs -a share shareall NFS information cat /proc/mounts showmount nfsstat name resolution order /etc/nsswitch.conf /etc/resolv.conf /etc/nsswitch.conf getent show network interface info ifconfig ethtool dladm ndd ifconfig -a netstat -in dladm change IP Joyent Public Cloud IP addresses are set in the Cloud Management Portal. Joyent Public Cloud IP addresses are set in the Cloud Management Portal. ping one packet ping -c 1hostname pinghostnamepacketsize 1 sniff network etherfind tcpdump wireshark (formerly_ethereal) etherape snoop route definitions route (rh)/etc/sysconfig/network (rh)/etc/sysconfig/static-routes (deb)/etc/init.d/network (deb)/etc/network /etc/defaultrouter /etc/notrouter /etc/gateways in.routed netstat -r route add telnetd, ftpd banner /etc/(telnet) (ftp varies; can use tcp wrappers) /etc/default/telnetd /etc/default/ftpd set date/time (from net: ntp or other) ntpdate rdate netdate ntpdate rdate auditing auditd /var/log/faillog audit auditd auditreduce praudit encrypted passwords in /etc/shadow(may vary) /etc/shadow min password length /etc/pam.d/system-auth /etc/default/passwd allow/deny root logins /etc/securetty /etc/default/login firewall config iptables ipchains ipfwadm (rh)redhat-config- securitylevel /etc/ipf/ipf.conf show installed software (rh)_rpm -a -i (rh)_rpm -qa (rh)yum list installed (deb)dselect (deb)aptitude (deb)dpkg -l (gen)_ls /var/db/pkg/* (gen)_eix -I pkgin list add software (rh)_rpm -hiv (rh)yum installpkg (deb)dselect (deb)_apt-get install_pkg (deb)dpkg -i pkgin install precompiled binaries* of GPLware and freeware* (deb)(deb)(gen)(gen); (md)/sdc6/ C compiler cc gcc /opt/local/bin/cc (gcc installed via pkgin) configure/show runtime linking ldconfig ldd lsmod crle ldd pldd modinfo LD_PRELOAD link library path $LD_LIBRARY_PATH /etc/ld.so.conf $LD_LIBRARY_PATH tracing utility strace ltrace dtrace truss sotruss define user defaults /etc/profile /etc/security/ /etc/skel/ /etc/profile.d/* /etc/default/login /etc/profile /etc/security/ csh global .login /etc/csh.login /etc/.login default syslog and messages /var/log/syslog /var/log/messages /usr/adm/messages /var/log/maillog /var/adm/messages /var/log/syslog /
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 《GBT 34690.7-2017 印刷技術(shù) 膠印數(shù)字化過程控制 第 7 部分:計算機(jī)直接制版》專題研究報告
- 《GBT 33290.5-2016 文物出境審核規(guī)范 第 5 部分:儀仗》專題研究報告
- 《GB-T 21021.1-2021無源射頻和微波元器件的互調(diào)電平測量 第1部分:一般要求和測量方法》專題研究報告
- 《GBT 32581-2016 入侵和緊急報警系統(tǒng)技術(shù)要求》專題研究報告
- 《AQ-T 2035-2023金屬非金屬地下礦山供水施救系統(tǒng)建設(shè)規(guī)范》專題研究報告
- 《寵物鑒賞》課件-雪納瑞
- 《Python語言程序設(shè)計》課件-7.2 理解數(shù)據(jù)的維度
- 《智慧景區(qū)服務(wù)與管理》課件-第二章 任務(wù)一 旅游景區(qū)票務(wù)服務(wù)
- 施工現(xiàn)場起重吊裝隱患識別及安全技術(shù)應(yīng)用
- 數(shù)字文旅景點導(dǎo)覽信息服務(wù)協(xié)議
- 心理因素對創(chuàng)新行為的影響
- 脊髓損傷的膀胱護(hù)理
- 《醫(yī)學(xué)影像診斷報告書寫指南》(2025版)
- 高校物業(yè)安全培訓(xùn)內(nèi)容課件
- (正式版)DB33∕T 1430-2025 《海塘安全監(jiān)測技術(shù)規(guī)程》
- 醫(yī)藥競聘地區(qū)經(jīng)理匯報
- 水庫調(diào)度操作規(guī)程模板
- 產(chǎn)科護(hù)士長年終總結(jié)
- 酒店情況診斷報告
- DBJ04-T483-2025 海綿型城市道路與廣場設(shè)計標(biāo)準(zhǔn)
- 農(nóng)藥運(yùn)輸儲存管理制度
評論
0/150
提交評論