How to Redirect Text Input/Output in Linux (cat, tee)

Поділитися
Вставка
  • Опубліковано 18 вер 2024

КОМЕНТАРІ • 58

  • @xE92vD
    @xE92vD 4 роки тому +1

    You made it, you finally got 11k subs I was the guy who posted a comment on UR video when u was like 500 or 1k subs I really don't know but yeah I posted a comment on the learn VirtualBox video. You really work hard on your videos you deserve even more subs keep going like this!!!

  • @fakihakhan1911
    @fakihakhan1911 4 роки тому +3

    very interesting playlist, loved it despite already knowing linux basics

    • @Cyberspatial
      @Cyberspatial  4 роки тому +1

      Thanks a lot!
      Eventually we'll get to some of the more advanced commands and tricks.

  • @shobhitsharan2027
    @shobhitsharan2027 4 роки тому +2

    kudos for the efforts you put in making these videos

  • @krutikpednekar6842
    @krutikpednekar6842 3 роки тому +1

    hey there loved this video series a lot !!! I have a request to make... an informative video for digital forensics and roadmaps for it would be awesome as there is not a single channel giving clear descriptions for the same..Cheers !!!

    • @Cyberspatial
      @Cyberspatial  3 роки тому

      Appreciate the kind words. Will add your recommendation on our project list :)

  • @TadTheTame
    @TadTheTame 4 роки тому +6

    Loving the videos! Really interested in all this

  • @imuser007
    @imuser007 4 роки тому +2

    Hey bro one more great content bro
    Which video editor ur using is that open source

    • @Cyberspatial
      @Cyberspatial  4 роки тому +2

      Hi Naveen, we're using Adobe Premiere and Adobe After Effects.

    • @imuser007
      @imuser007 3 роки тому

      @@Cyberspatial thanks brother

  • @uniquechannelnames
    @uniquechannelnames 2 роки тому

    Hey what's the music you use in the background. Sounds relaxing. Great video btw!

  • @hpp6116
    @hpp6116 3 роки тому +1

    Nice presentation! At 1:57 though, I think the statement on standard input and cat is not quite accurate.
    Although, `command somefile' and `command < somefile' will most of the time produce the same result,
    it is not exactly the same, at least as far as I understand it. In the former case, the file `somefile' acts as
    an argument to the command, whereas in the latter one it operates on the standard input. In general, the
    ommission of `

    • @Cyberspatial
      @Cyberspatial  3 роки тому

      Thanks for the comment!
      Believe it varies depending on how the command handles arguments vs stdin. So yeah, not exactly the same.

  • @SatishKumar-uw1je
    @SatishKumar-uw1je 4 роки тому +1

    🤗🤗🤗 Make more videos series for this

  • @cygmoid
    @cygmoid 3 роки тому

    Really nice and simple for a beginner to understand. I had a suggestion, you can use dos2unix which comes in busybox to convert Windows text files to Linux. Nice video Cyberspatial

    • @Cyberspatial
      @Cyberspatial  3 роки тому +1

      Dos2unix is great, though often it's not pre-installed by default on many distros. Sometimes you just have to live off the land with tr 😅

    • @cygmoid
      @cygmoid 3 роки тому

      ​@@Cyberspatial Okay, I get it now

  • @maheshrajpandit8964
    @maheshrajpandit8964 4 роки тому

    Thanks for this video .
    It will be great if you make tutorials in bash !

  • @AmusaVictorAyo
    @AmusaVictorAyo Рік тому

    To be honest, I love it! Such a wonderful video! Thanks alot, I'm really grateful 🎉❤❤❤

  • @amolkale3651
    @amolkale3651 3 роки тому

    Hey Ricky great video literally understand everything.. Please make more videos like this. Doing good job thanks bro

  • @mohammedalbatati5529
    @mohammedalbatati5529 3 роки тому

    Loved it so much as I learned a lot
    Many thanks

  • @Desi_bikers108
    @Desi_bikers108 3 роки тому

    mindblowing

  • @barackuse
    @barackuse 3 роки тому

    The video is well done but I am still a bit confused. I have a game server and I start it by running ,/start-server.sh In this file contains screen -S Arma ./arma3Server_x64 -servermod=@extDB3 -mod@CBA_A3 -config=server.cfg This sends a lot of text to the terminal, I want to record that text output to a file, so I can analyze it for errors. I tried the > and the tee commands, but nothing works. Any ideas?

    • @Cyberspatial
      @Cyberspatial  3 роки тому

      A lot of programs aren't configured to flush standard out. Check to see if the arma3Server_x64 script or binary has a way to log its output via a command switch. Another trick that may work is putting that command in a bash script (prepend with #!/bin/bash at the beginning, then chmod +x to make executable). You should be able to redirect the output of the script to a log file.

  • @Bang6484a
    @Bang6484a 3 роки тому

    Can you please tell me how to redirect builded c program output to a text file? (From Bangladesh)

    • @Cyberspatial
      @Cyberspatial  3 роки тому

      Your C program should be able to print text. Then use > to redirect.
      You can also have the program just write to a file.

  • @Jo_Wick
    @Jo_Wick 4 місяці тому

    Am I the only one to notice that the poem at 9:06 has a different indentation at line 5?

  • @santhosh54
    @santhosh54 4 роки тому

    I installed kali Linux on windows powershell and downloaded the wsl 2 and all done but it's still shows system has not been boot with systemmd (pid1)
    Userd service openvas start but not worked. what's the problem

    • @Cyberspatial
      @Cyberspatial  4 роки тому +2

      Dot Explore WSL2 does not come with Systemd, I don’t think. To start and run services you’ll need to use service start/stop instead of systemctl.
      Honestly I think it might be easier just running Kali in a VM instead of in WSL

  • @Jure1234567
    @Jure1234567 3 роки тому

    How about outputting both stdin and err by &>

    • @Cyberspatial
      @Cyberspatial  3 роки тому

      Both these should work.
      &> file.txt
      2>&1 1> file.txt

  • @akshitchauhan6999
    @akshitchauhan6999 4 роки тому

    From where to start to become a cyber security specialist

    • @akshitchauhan6999
      @akshitchauhan6999 4 роки тому

      Should learn phython first 🤔

    • @Cyberspatial
      @Cyberspatial  4 роки тому +1

      Akshit Chauhan our video here is a great place to start: ua-cam.com/video/Kx4y9c7w2JQ/v-deo.html
      These are the top 5 skills to get into cybersecurity!

  • @armincal9834
    @armincal9834 3 роки тому

    Is fhere a significant difference between an ethical hacker and a cyber forensics guy?

    • @Cyberspatial
      @Cyberspatial  3 роки тому

      Cyber forensics is typically defensive-oriented, while the other is offensive-oriented. Best to learn both.

    • @armincal9834
      @armincal9834 3 роки тому

      @@Cyberspatial thanks for you answer. At the moment I'm learning networking basics(trying to get network +) and am learning python and django for basic web development (already know basic javascript and php) i want to get a CEH cert one day and i think it's important to know programming(web dev) and networking in order to be able to come up with my own attack vectors. Do you agree with my plan? I hope to become an ethical hacker one day but my degree has nothing to do with comp sci or comp eng.

    • @Cyberspatial
      @Cyberspatial  3 роки тому

      @@armincal9834 Learning Web Dev is a great way to build out useful cyber security tools. It'll also help you have a deeper understanding of webapp vulnerabilities and pentesting. Most of what you'll learn in CS is less relevant to software dev and cyber than you think. Read books cyber professionals have already published!

    • @armincal9834
      @armincal9834 3 роки тому

      @@Cyberspatial thank you very much for your help! Actually one of the main reasons why i decided not to get a degree was that where I'm from, comp sci is still a sub-department of math and is full of (IMHO) useless and overly complicated math. I have developed some simple apps with django and express and not once did i use math even simple arithmetics :) the only time i needed math was the subnetting part for compTIA network+ :))

    • @Cyberspatial
      @Cyberspatial  3 роки тому

      @@armincal9834 Learning Web Dev is a great way to build out useful cyber security tools. It'll also help you have a deeper understaning of webapp vulnerabilities and pentesting. Most of what you'll learn in CS is less relevant to software dev and cyber than you think. Read books cyber professionals have already published!

  • @luLAAsAsOoooooooooO
    @luLAAsAsOoooooooooO 4 роки тому

    Good job keep going

  • @joshualacson9982
    @joshualacson9982 4 роки тому

    What app is that?

    • @Cyberspatial
      @Cyberspatial  4 роки тому

      That's right!
      GNOME Terminal, specifically
      en.wikipedia.org/wiki/GNOME_Terminal

    • @xE92vD
      @xE92vD 4 роки тому

      @@Cyberspatial isn't that terminal you use in the video Linux terminal???

    • @joshualacson9982
      @joshualacson9982 4 роки тому

      Can it be used in android

    • @xE92vD
      @xE92vD 4 роки тому +1

      @@joshualacson9982 no lol

  • @muhammadtijjani3203
    @muhammadtijjani3203 3 роки тому

    Please if possible stop appearing while showing terminal because is really distracting. Thank u for the videos

    • @Cyberspatial
      @Cyberspatial  3 роки тому

      Thanks for the input, but we're not sure everyone feels the same way.