Many fragmented command highlights:
1. How to download FTP files by command
Read-s-P "Your passwd:" passwd; wget--user=yourusername--password= $Passwd ftp://IP/dir/file
Read-s-P "Your passwd:" passwd; Axel Ftp://yourusername:[email Protected]/dir/file
2. How to download Samba files by command
Smbclient//ip/file--user=domain\\user-c "CD \dir\dir; Get File "
Download All Files:
Smbclient//ip/file--user=domain\\user-c "prompt off;recurse on; CD \remotedir\dir; LCD '/local/dir '; Mget * "
3. Ldapsearch Retrieving AD data:
Ldapsearch-x-D [email protected]-W passwd-h domain-b "Cn=container,..., dc=domain"-S Sub "(objectclass=*)"
4. Common RPM Commands
Check which files are included in the. RPM:
RPM-QLP pkg.rpm
Check which files are included in an installed software:
RPM-QL Pkg
Check which package a file comes from:
Rpm-qf/bin/ps
Unzip to get all the files in. RPM:
Rpm2cpio myrpmfile.rpm | Cpio-idmv
Check the relevant (install, uninstall) script for a software
RPM--SCRIPTS-QP Pkg
4. Common commands for other system software:
Dpkg-c
Gunzip ahoo.gz
Swinstall-s/path/to/ahoo.depot \*
SH Phco_ahoo
Pkgadd-d ahoo.local
Pkginfo
Pkgchk
Pkgtrans openssl-0.9.8d-sol8-sparc-local.
installp-d AHOO.BFF All
Hpux Arch:file/stand/vmunix
5. Mount on UNIX System
mount-vcdrfs-oro/dev/cd0/cdrom/
Solaris:mount-o vers=3
Mount-o Loop Disk1.iso/mnt/disk
Aix:nfso-po Nfs_use_reserved_ports=1
6. Check the program built-in LIBPATH:
Hpux-chatr
Dump-hv
SunOS elfdump-d
Linux readelf-d
7. Other:
Iptables-a output-d 202. -j DROP
PS Eww pid|cat/proc/pid/env
Smitty Chtz_date
EEPROM boot-device= "/[email protected],600000/[email protected]/[email protected],0:a/[email protected],600000/[ Email Protected]/[email protected],0:a "
Fsck-y/dev/md/dsk/d7
Fuser/file_used_by_process
Inetadm-m/-l
Svcadm Refresh
Diff-nurp Old New>patch
Set Follow-fork-mode Child
Sudo/usr/sbin/ntpdate 3.asia.pool.ntp.org
TCPDUMP-NNVVSX DST 192.168.96.83-w Capter.txt
Tcpdump-r-X Capter.txt
ADDR2LINE-E a.out 0XABC
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
Common Linux/unix Development Auxiliary command Assorted