Linux Command Line Tutorial For Beginners 5 - I/O Redirection

preview_player
Показать описание
In this video I will show how I/o redirection wok in Linux using Linux Command Line (Terminal). I will show I/O Redirection works in Linux, Redirect all output to file, Illustrated Redirection Tutorial
Linux redirect stderr and stdout to file, Linux redirect stderr to stdout
Linux iptables redirect, Linux nginx redirect, Linux redirect stderr to file, Linux redirect stdin, Linux redirect stdin to file, Linux stdout

-------------------Online Courses to learn----------------------------
----------------------Follow---------------------------------------------
-------------------------Stuff I use to make videos -------------------
Stuff I use to make videos
------------------Facebook Links ----------------------------------------
Рекомендации по теме
Комментарии
Автор

I was anxious about learning bash CLI. You've made it a breeze. Very clear and concise, excellent delivery. English is perfect. Well done, now I continue.

RC-blpm
Автор

Thank you so much!! My professor only teaches up content from a separate textbook, while we have to teach ourselves this content. Although it is a 100 class, it has been the most difficult for me because of him not teaching us this content and instead focusing on understand the history of computers, which I get is a major part of the curriculum but when our labs are based off of being able to work in Linux, it get difficult. Not to mention that the understanding computers part is weighed much more than these labs, especially with the chapter quizzes that have nothing to do with linux.

dxxxm
Автор

Great course i'm a windows guy , years ago i ran linux and forgot the most of it and you've made it easy and catchy to recall...

yossikisslasi
Автор

all the years I've been an administrator, that is by far the longest username/hostname I've ever seen 😂

osakasim
Автор

Best video on This topic, watched 5 videos and didn’t understand this topic until now ;)

GEINA
Автор

awesome Video.. love learning with these tutorial videos 😊

UnboxwithAz
Автор

Thank you so much, your videos are amazing

ahmadnawasreh
Автор

At 8:01 appending doesnot give same result as check...it returns list1.txt twice

pankajkang
Автор

Good videos, pretty easy to follow. Just wondering if anyone noticed the output of combining the files at 7:55 was off? Could just be me as I am still a beginner, but why is there no "list 2 line 1" in the output?

willh
Автор

Hello sir can i remove duplicate records . if i am appending both file if both files have same data it write it once ?

adeelmalik
Автор

Hello,
Was there any changes to list 2 file as append command ( cat list 1 >> list 2 ) output shows same file contents.

sarwatw
Автор

cat > <filename> to over write to file if it is existing or create a file and write in it.
cat >> <filename> to append content in that file if the file is existing otherwise give error that directory not found.
cat <filename 1> <filename 2> >> <filename 3> this will combine content of filename 1 and 2 and append in filename 3.
These command are not just for cat but we use any command and store content from that command using > and then add file name .

satyashivam
Автор

Is there a way to shorten the prompt? It's taking over half the line, making your sample commands hard to follow.

johnr
Автор

the second cat of line 4 5 6 is deleting the first of 1 2 3 why?

TH
Автор

sir i watched your how to install java video and java home but when i did every thing in the video i still cant open any files with java it doesnt show up can you please help? im on windows 10 and im trying to open a .jar file

kayteevsvp
Автор

Why do this when you can use nano or any terminal text editor?

IamAWESOME
Автор

At last
cat list1.txt >> list2.txt
will return the content of list1.txt twice into the list2.txt, instead of merging them.
Please correct

hamsterlivegaming
Автор

I want to append the contents of list1 to list2 but I want the contents of list1 to written first and then list2.
How do I do that??

sadrulquadri
Автор

how to undo when use this command "cat > test101"

pcriginal
Автор

for those who observed the result at 7:55
Actually the Command
cat list1.txt list2.txt > list2.txt
will copy the content of list1.txt to list2.txt instead of merging them.

So, then content of list2.txt becomes
list1 line1
list1 line2

list 1 line 3

and then author again wrote the command
cat list1.txt >> list2.txt

So, the content of list1.txt is now appended list2.txt content, which already what I have shown above.
That's why we are getting that output at 7:55.
I hope issue of many will get resolve after this.

anuragsmusic