




已閱讀5頁(yè),還剩2頁(yè)未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
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. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 藝術(shù)品市場(chǎng)藝術(shù)市場(chǎng)風(fēng)險(xiǎn)識(shí)別與評(píng)估考核試卷
- 外貿(mào)英語(yǔ)函電保險(xiǎn)課件
- 酸堿反應(yīng)全解析
- 塑造健康生活
- 碩士論文寫作指導(dǎo)
- 天津中德應(yīng)用技術(shù)大學(xué)《再生醫(yī)學(xué)》2023-2024學(xué)年第一學(xué)期期末試卷
- 江蘇省連云港市海州區(qū)市級(jí)名校2025屆初三第一次調(diào)研考試(生物試題理)試卷含解析
- 山東服裝職業(yè)學(xué)院《中醫(yī)推拿與養(yǎng)生》2023-2024學(xué)年第二學(xué)期期末試卷
- 天津醫(yī)學(xué)高等??茖W(xué)?!督虒W(xué)方案設(shè)計(jì)技能訓(xùn)練》2023-2024學(xué)年第二學(xué)期期末試卷
- 江西中醫(yī)藥大學(xué)《大學(xué)生職業(yè)發(fā)展與就業(yè)指導(dǎo)》2023-2024學(xué)年第一學(xué)期期末試卷
- 人工智能訓(xùn)練師理論知識(shí)考核要素細(xì)目表五級(jí)
- 2024年貴州省中考理科綜合試卷(含答案)
- 110kV變電站專項(xiàng)電氣試驗(yàn)及調(diào)試方案
- DL-T901-2017火力發(fā)電廠煙囪(煙道)防腐蝕材料
- GB/T 3428-2024架空導(dǎo)線用鍍鋅鋼線
- ISO 15609-1 金屬材料焊接工藝規(guī)程及評(píng)定-焊接工藝規(guī)范中文版
- MOOC 英語(yǔ)語(yǔ)法與寫作-暨南大學(xué) 中國(guó)大學(xué)慕課答案
- 2024年山東省濟(jì)南市歷下區(qū)中考二模地理試題
- 電子書 -《商業(yè)的底層邏輯》
- 人居環(huán)境科學(xué)市公開課一等獎(jiǎng)省賽課微課金獎(jiǎng)?wù)n件
- 4.2 應(yīng)對(duì)挫折提升抗逆力(高效教案)-【中職專用】中職思想政治《心理健康與職業(yè)生涯》(高教版2023·基礎(chǔ)模塊)
評(píng)論
0/150
提交評(píng)論