RUVIDEO
Поделитесь видео 🙏

How to Use Diff Unix Command

The UNIX DIFF command in Linux tells you the difference between two files that you have opened in the contents in the directory.

Don't forget to check out our site http://howtech.tv/ for more free how-to videos!
http://youtube.com/ithowtovids - our feed
http://www.facebook.com/howtechtv - join us on facebook
https://plus.google.com/103440382717658277879 - our group in Google+

In this tutorial we will show you how to use the diff unix command.
The diff command is simply used to compare the data of two files. What this command does is that it prints the lines from the two files which are different.
To understand more about the unix commands of diff follow the steps given below.

Step 1 -- List the directory contents

First, let's list the contents of the directory. With that done, you can see two text files over here.

Step 2 -- Enter command to see difference in both files

Now type the command "diff text-output.text text.txt"
With that done you will see the difference in both the files has been printed on the terminal screen.

Step 3 -- Check for directories

Now we will show you how the check for the directories using the diff command.
For that, type the command diff dir dir2 and hit enter.
This will compare the directory named "dir" with another directory named "dir2".
Once we hit enter, you can see a message printed on the screen saying "Only in dir1: 5"
This means that the file number 5 is only present in dir1.

Step 4 -- View dir1

To confirm that, let's check manually the difference in the two directories. For that, we will enter in the first directory and list the contents over here.
You can see that all the files 1 till 5 are present in this directory.

Step 5-- View dir2

Now let's move into dir2 and list the contents over there. With that done, you can see that only the files 1 till 4 are present in this directory. This goes to show that the diff unix command had successfully printed the difference in the two folders, that the fifth file was only present in the first directory.
And that's it, from the above tutorial you can learn about the diff commands of diff in Linux.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «How to Use Diff Unix Command», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.