Showing File Contents
And one thing—sorry, I just keep talking, huh? One thing I want to say too is that you want to use the Tab character very often if you can. That’s an autocomplete in your terminal, and that’s what you see me do if I say
hello and then press the Tab character—I need a command before that…
hello and press the Tab character, then if it can, then it autocompletes. If it can’t, then it gives me the options that that I can use, basically. Cool. That’s handy.
A little bit like code completion in your editor. Yeah. It’s a bit intelligent there. And yeah, you were basically foreshadowing something with the
cat. I mean, you said, like, you put like this
echo output into the file, but this time I really want you to prove that it’s actually in the file without opening it in an editor, because of course this file exists now, and you could open it in any editor.
I can say meow [laughter]
hello_terminal.py, and then it shows me the contents of the file. So now, in this case, this is actually what’s written inside of the file
hello_terminal.py because I put it in there using this command where I redirected the output of the
echo command into the file
Become a Member to join the conversation.