Stdout
I want to check if my file system is alright
I run fsck /dev/sda8, and the result went to the stdout file Now I want to check the stdout file with the cat command, but it get stuck, after several minutes and didn't show anything. Is there a especial way to read the file or what?? |
I have never seen a "stdout" file.
If you run a command in a terminal, "standard output" is the terminal---ie it displays on the screen. If you have a file named "stdout", how big is it? Does it have ANY data? To purposely put the output of fsck into a file: fsck /dev/sda8 >filename 2>&1 (this sends (re-directs) stdout to filename, and sends stderr to the same place) |
Quote:
I'll post the results later =) |
Note that there is actually a file called "stdout". It's in /dev and is a special device file.
Any text sent into this file gets printed on your shell's stdout (terminal typically). "cat /dev/stdout" doesn't do much good, since "cat" will try to read from a device that's normally used for writing (ie writing to your terminal window) only. |
Quote:
If that is the file he was looking at, it all makes sense. OP--where are you?? |
All times are GMT -5. The time now is 03:42 AM. |