
The > operator tells the shell to redirect the output of the command to the given file.

Model name : Intel(R) Core(TM) i3 CPU M 370 2.40GHz We can see the data that would have gone to the screen with more command : :~$ more command.txt # Command_options_and_arguments > output_fileĮxample : :~$ cat /proc/cpuinfo > command.txt

Syntax to redirect the output of a command to a file. These numbers are important when you need to access a particular file, especially when you want to redirect these files to the other locations, File descriptors numbers go up from zero. File descriptor 1 refers to standard output ( stdout) and file descriptor 2 refers to standard error ( stderr). By default, file descriptor 0 (zero) refers to the standard input & often abbreviated as stdin.

