Linux for Beginners: The Ultimate Beginner Guide to Linux Command Line, Linux Programming and Linux Operating System by Steve Will

Linux for Beginners: The Ultimate Beginner Guide to Linux Command Line, Linux Programming and Linux Operating System by Steve Will

Author:Steve Will
Language: eng
Format: mobi, azw3, epub, pdf
Published: 2016-02-05T22:00:00+00:00


Redirects

Linux, like any Unix-like system, has mechanisms to redirect the standard input-output to files.

Thus, the use of the character ">" redirectsthe standard of a command to the left output to the file locatedto the right:

ls -al /home/jf/> test.txt

echo "test"> /etc/myconfigurationfile

The following command is equivalent to copying files:

cat file1>file2

Redirection ">" aims to create a new file. So if a file with same name existed, it is overwritten. The following command simply creates an empty file:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.