




已閱讀5頁,還剩2頁未讀, 繼續(xù)免費閱讀
版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
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)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- DB15-T 2896-2023 河套灌區(qū)鹽堿化耕地土壤培肥技術規(guī)程
- 北海市防御臺風應急預案
- 安全實施方案集錦(33篇)
- 病原生物學(微生物)課程教學大綱
- 浙江紹興一中2025屆高二下化學期末檢測模擬試題含解析
- 兒童哮喘的康復護理與長期管理
- 山東省青島市膠州市實驗中學2024-2025學年高一下學期6月階段性檢測地理試卷(含答案)
- 湖北省重點高中智學聯(lián)盟2024-2025年高一下學期5月聯(lián)考地理試卷(含答案)
- 福建省泉州市永春第一中學2025屆高三下學期二模地理試卷(含答案)
- 干部種菜活動方案
- 焊工作業(yè)(初訓、復審)培訓課件
- (完整版)高考英語詞匯3500詞(精校版)
- 2024年平?jīng)鰶艽h縣級醫(yī)療衛(wèi)生單位選調(diào)考試真題
- 道路白改黑施工方案及工藝
- 中高檔竹工藝品項目可行性研究報告建議書
- 初中語文核心素養(yǎng)培育策略研究結題報告
- 工圖機械制圖試卷專題11綜合型組合體三視圖求法習題
- 醫(yī)院氧氣泄露應急預案
- 新版建設工程工程量清單計價標準解讀
- 京東方測評試題及答案
- 初中數(shù)學專題講座課件
評論
0/150
提交評論