在linux下,如何将shell里输出的信息写入到文件里呢?
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-05-02
ttpd2-prefork 3604 ? 00:00:00 httpd2-prefork 3605 ? 00:00:00 httpd2-prefork 3691 ? 00:00:00 nscd 3734 ? 00:00:00 sshd 3772 ? 00:00:00 smartd 3802 ? 00:00:00 smbd 3815 ? 00:00:00 master 3849 ? 00:00:00 smbd 3861 ? 00:00:00 cron 3943 ? 00:00:00 gdm-session-wor 3976 tty1 00:00:00 mingetty 3977 tty2 00:00:00 mingetty 3978 tty3 00:00:00 mingetty 3982 tty4 00:00:00 mingetty 3983 tty5 00:00:00 mingetty 3986 tty6 00:00:00 mingetty 4023 ? 00:00:00 gnome-keyring-d 4039 ? 00:00:00 gnome-session 4138 ? 00:00:02 scim-launcher 4145 ? 00:00:00 scim-launcher 4184 ? 00:00:00 gpg-agent 4185 ? 00:00:00 ssh-agent 4196 ? 00:00:00 dbus-launch 4197 ? 00:00:00 dbus-daemon 4200 ? 00:00:01 gconfd-2 4204 ? 00:00:02 gnome-settings- 4212 ? 00:00:00 gvfsd 4217 ? 00:00:00 gvfs-fuse-daemo 4226 ? 00:00:11 metacity 4230 ? 00:00:21 gnome-panel 4231 ? 00:00:34 nautilus 4237 ? 00:00:00 gvfs-hal-volume 4239 ? 00:00:00 gvfs-gphoto2-vo 4244 ? 00:00:00 bluetooth-apple 4245 ? 00:00:00 python 4251 ? 00:00:00 gnome-volume-co 4252 ? 00:00:00 gpk-update-icon 4267 ? 00:01:32 pulseaudio 4271 ? 00:00:00 nm-applet 4281 ? 00:00:00 gnome-power-man 4282 ? 00:00:00 bluetoothd 4296 ? 00:00:00 bluetooth 4302 ? 00:00:00 gconf-helper 4309 ? 00:00:00 krfcommd 4365 ? 00:00:00 bonobo-activati 4419 ? 00:00:00 nm-system-setti 4429 ? 00:00:00 gvfsd-trash 4446 ? 00:00:01 tomboy 4448 ? 00:00:01 mini_commander_ 4466 ? 00:00:00 gvfsd-burn 4485 ? 00:00:01 scim-bridge 4490 ? 00:00:00 mount.ntfs-3g 4503 ? 00:00:00 mount.ntfs-3g 4510 ? 00:00:00 mount.ntfs-3g 4520 ? 00:00:00 mount.ntfs-3g 4527 ? 00:00:02 gnome-screensav 4532 ? 00:00:00 gvfsd-computer 4845 ? 00:00:04 wineserver 4848 ? 00:00:00 services.exe 4850 ? 00:00:00 winedevice.exe 4858 ? 00:00:01 iexplore.exe 4860 ? 00:00:00 explorer.exe 7980 ? 00:00:00 scim-helper-man 7981 ? 00:00:03 scim-panel-gtk 8299 ? 00:00:00 pickup 8308 ? 00:00:00 qmgr 8793 ? 00:00:00 firefox 8798 ? 00:05:23 firefox 9070 ? 00:00:00 gnome-terminal 9071 ? 00:00:00 gnome-pty-helpe 9072 pts/0 00:00:00 bash 9097 pts/0 00:00:00 ps linux-a9c6:~ # ps -A > /root/1.txt linux-a9c6:~ # ls | find 1.txt 1.txt linux-a9c6:~ # |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于在linux下,如何将shell里输出的信息写入到文件里呢?的所有评论