为了得到某进程的详细启动命令。
从ps aux|grep vmware > vmware.ps
的输出的内容中只要它的后11列,即使得前10列为空字符串。
➜ ~/GitProjects awk '{$1=$2=$3=$4=$5=$6=$7=$8=$9=$10=""; print $0}' vmware.ps [2:59:55]
/Applications/VMware Fusion.app/Contents/Library/vmware-vmx -E zh-Hans -s vmx.stdio.keep=TRUE -# product=64;name=VMware Fusion;version=8.5.7;buildnumber=5528452;licensename=VMware Fusion for Mac OS;licenseversion=8.0; -@ duplex=3;msgs=ui -D 4 /Users/caiqiqi/Documents/Virtual Machines.localized/Kali-Linux-2016.1-vm-amd64/Kali-Linux-2016.1-vm-amd64.vmx
/Applications/VMware Fusion.app/Contents/Library/vmware-usbarbitrator
/Applications/VMware Fusion.app/Contents/Library/vmnet-dhcpd -s 6 -cf /Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf -lf /var/db/vmware/vmnet-dhcpd-vmnet8.leases -pf /var/run/vmnet-dhcpd-vmnet8.pid vmnet8
/Applications/VMware Fusion.app/Contents/Library/vmnet-dhcpd -s 6 -cf /Library/Preferences/VMware Fusion/vmnet1/dhcpd.conf -lf /var/db/vmware/vmnet-dhcpd-vmnet1.leases -pf /var/run/vmnet-dhcpd-vmnet1.pid vmnet1
grep vmware