 I am literally leaving my house right now. I just recorded a video for you guys and I wanted to do a little introduction to it, but I've got to go pick up my wife and kids. So I hope you learn something from this video. It's an old technique using CAT2 as a text editor. So let's jump right in. I literally have to leave to pick up my wife. I had five minutes to record this video. I finished and realized I never clicked record. So I'm going to do this very quickly. I feel kind of weird doing this tutorial because this seems to me a common thing that everybody should know. But thinking like that, it's just called the Curse of Knowledge. When you know something and you think everybody knows it, someone who's new to a Unix or a Unix style system like Linux may not know this. And even people who have used Linux for a while may not know this. Now we all know that we can say echo hello world, which exits the screen, but we can do the greater than symbol to put that into a file like text.txt. And then I can use cat to cat that out and that text is in there. But did you know that if you type cat and you hit enter, you can start typing, but every time you hit enter, it basically echoes back that line to you. I'm going to hit control C to get out of that, which means if you do cat and you do the greater than symbol to create a new file or write a file or greater than greater than to append, I'm just going to create a new file here. I was called a text.txt. I can type this is a thing I am typing on the screen. And when I'm done, I hit control D. Now I can see if I cat it out cat that txt. I actually created that file and put why I typed in there. So this is considered the poor man's text editor. If you're on a it has come in handy for me on a lightweight system, if you're working on like a modem or a router where you pop a shell and you need to put something into a file, you can add to a file if you have multiple lines like this, if you don't have Vim or Vi or Nano, which yeah Vi is built into busy box and usually you can get a copy of busy box onto a system if you have a shell, but if not, this is one way about going about. But there's another way, another area where this has become useful for me. So with Vim here, I've looked up online, I'm going to copy this. This is the entire Bible, the King James Bible, which is a very large text. So and I'm using this as an extreme example, but even just a lot of large text files. If I Vim into a Bible that txt, which file did kind of exist because I was doing this video a little bit ago, if I am an insert mode, I can type stuff. If I hit control shift D to paste that, is anything happening? Is anything happening? Yes, something is happening. Look, I can try to type nothing's happening. But if I use Tmux to split my screen and I go to the other screen down here, oops, you can see that on the bottom here is the Vim that I was just in. It is pasting it, but it's still going. If I go back down there and I try to type something, nothing happens. If I make it full screen, you can see it's a little bit further. Control a up arrow or whatever command. I don't have time to record this and I just messed up, but I just went up to the other terminal screen here. You can see updated the screen, but it's still pasting it. But if I was to cat greater than Bible to dot txt, and I hit control shift V to paste that text in there, it's a lot of text. So it takes, but it's going to take maybe five, 10 seconds at most. And it's going to put all of that text into that file. It's putting it there. Okay, we're down. I'm going to hit enter here, and I'm going to hit control D. And now I can cat out Bible to dot txt. And I can even open that up with Vim right now, Bible to dot txt. And you can see it's all here. I can go all the way down to the end or all the way up to the top. And from my understanding, the reason for this has to do buffers and stuff. Basically, from my understanding is when you paste something into Vim like that, it's actually typing every single character. It's like typing it, which takes a lot longer than just pasting it. Don't ask me why I'm sure there's technical reasons on why it does this, but it takes forever to paste large amounts of text into Vim. But again, if you use this cat command, text dot text to dot txt, then you paste it right here in the shell. When you get to the end, you hit control D. And you just create that text file. And again, you can then use Vim to open up that file. And it's a lot faster than trying to paste it right into Vim as is, you can see. And again, the first thing we did still going, but I've just pasted it into two different text files and open it up in Vim. No problem. So I hope you find this useful. Again, it's an old trick that a lot of people know, but I think a lot of people don't know. So I decided to do a tutorial on it. And now I'm three minutes late to go and pick up my wife. So I have to get going. I do thank you for watching. And as always, I hope that you have a great day.