Kali Linux Redirection
Redirect
In Linux, you must understand that we use a lot of redirection in the terminal window.
For example, to save the output of the ls command into a file, I can redirect the output from the terminal window to a text file using the > (greater than) character:
kali@kali:~$ ls > ls_file.txtkali@kali:~$ cat ls_file.txtDesktopDocumentsDownloadsls_file.txtMusicPicturesPublicTemplatesVideosNow, you can do the opposite by redirecting (printing) the text file contents into the terminal window using the < (less than) character:
kali@kali:~$ cat < ls_file.txt
Desktop
Documents
Downloadsls_file.txt
Music
Pictures
Public
Templates
Videos
Comments
Post a Comment