Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok I have had time to try all of the following commands:
grep da * 2> log.txt
grep da * 1>&2 >log.txt
grep * 2>&1 >log.txt
all of these commands will create some type of log, but not what I am looking for. I am trying to have all of the information displayed on the konsole screen out puted to a log file as a script is run. Including the information in the script and the commands output responce. I need all of the following to be writen to a log file:
umount: /dev/fd0
umount: /dev/scd0
umount: /dev/sda1
umount: /dev/hda8
umount: /dev/hda10
umount: /dev/hda11
echo "The following devices have been umounted in /test ..... floppy,cdrom,usb,D2,D3,D4,D5,D6,D7 "
umount: /dev/fd0: not mounted
umount: /dev/scd0: not mounted
umount: /dev/sda1: not found
umount: /usr: device is busy
umount: /var: device is busy
umount: /dev/hda8: not mounted
umount: /tmp: device is busy
umount: /dev/hda10: not mounted
umount: /dev/hda11: not mounted
The following devices have been umounted in /test ..... floppy,cdrom,usb,D2,D3,D4,D5,D6,D7,
The command did write the information I needed to a log file, but also delete some system files. Good thing I tried this only on a test unit. Once I get the system back up and running I will try just -rf /
Originally posted by yoderp OK I tried the command
rm -rf /
The command did write the information I needed to a log file, but also delete some system files. Good thing I tried this only on a test unit. Once I get the system back up and running I will try just -rf /
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.