/photos$ cd thu and hit 'Tab,' it will fill in the rest and show you: /photos$ cd thumbnails However, if there is more than possible file/directory that matches what you've typed so far, it won't work. If you type: /photos$ rm pho and hit 'Tab,' nothing will happen because you could be on your way to `photo1.jpg` OR `photo2.jpg`. Command Output -------------- The commands we're going to talk about all output their results as text. When you execute the command by hitting 'Enter', it will print out> /files$ head names.txt Dan Sinker Erika Owens Noah Veltman Annabel Church Friedrich Lindenberg Sonya Song Mike Tigas Brian Abelson Manuel Aristaran Stijn Debrouwere /files$ Notice that after it prints out its output, it goes back to giving you a fresh prompt. Getting the output printed out to you in this fashio> ### Sending the output to a file You can send the output to a new file this way: /files$ head names.txt > first10names.txt -6 Copy ^Q Where Was
command-line-murders/i-0ddd88508d17ae5c3
by SadServersMore by SadServers
admin@i-090340fbfd6fc2419:~$ ls agent webserver.py admin@i-090340fbfd6fc2419:~$ admin@i-090340fbfd6fc2419:~$ curl localhost:5000 Unauthorizedadmin@i-090340fbfd6fc2419:~$ admin@i-090340fbfd6fc2419:~$ curl http://localhost:5000 Unauthorizedadmin@i-090340fbfd6fc2419:~$ curl https://localhost:5000 curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number admin@i-090340fbfd6fc2419:~$ admin@i-090340fbfd6fc2419:~$ curl localhost:5000/?auth=true Unauthorizedadmin@i-090340fbfd6fc2419:~$ admin@i-090340fbfd6fc2419:~$
paris/i-090340fbfd6fc2419 02:04
by SadServers> GET / HTTP/1.1 > Host: localhost:5000 > User-Agent: curl/7.74.0 > Accept: */* > * Mark bundle as not supporting multiuse < HTTP/1.1 200 OK < Server: Werkzeug/2.3.7 Python/3.9.2 < Date: Thu, 22 Feb 2024 07:21:02 GMT < Content-Type: text/html; charset=utf-8 < Content-Length: 12 < Connection: close < * Closing connection 0 Unauthorizedadmin@i-050cad83ab4faeb81:~$ curl -v localhost:5000