Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,820 --> 00:00:02,020
All right let's continue.
2
00:00:02,200 --> 00:00:07,060
We've seen so far how we can see the content of folders and how we can create fights but we haven't
3
00:00:07,060 --> 00:00:10,440
seen yet how we can see the contents of fights.
4
00:00:10,510 --> 00:00:15,090
Here is the explanation for the section on every Linux system.
5
00:00:15,120 --> 00:00:21,910
There's a hidden file called the bash history and this file retains the last five hundred commands executed
6
00:00:21,910 --> 00:00:23,470
by any user.
7
00:00:23,470 --> 00:00:29,010
It usually is in the user's home that actually and one of the things you want to do after the exploit
8
00:00:29,010 --> 00:00:34,360
the Linux machine is look at the content of this fight because it gives you a very good idea of what
9
00:00:34,360 --> 00:00:39,490
this user has been up to what have they been creating and what they've been interacting with.
10
00:00:39,490 --> 00:00:45,940
So going to be using this file as our example for the section we're going to be looking at the cat commands
11
00:00:46,360 --> 00:00:52,720
which is short for concatenate the gap can display the contents of a file in one go.
12
00:00:52,720 --> 00:00:57,190
We're also going to be looking at the less command which is a little bit more efficient than the cat
13
00:00:57,220 --> 00:00:58,470
commands.
14
00:00:58,510 --> 00:01:02,310
And I'm going to let you on your own try to head and take commands.
15
00:01:02,440 --> 00:01:11,980
So let's see how this looks like I'm doing him S1 is a remember the mind shows me all files including
16
00:01:11,980 --> 00:01:16,220
the hidden ones and the L is the long listing.
17
00:01:16,330 --> 00:01:17,000
And here we go.
18
00:01:17,000 --> 00:01:20,700
This is my batch file and see this dot for the bash history.
19
00:01:20,700 --> 00:01:24,040
This indicates that this is a hidden file.
20
00:01:24,040 --> 00:01:31,750
This is why I needed to use the l s why it has a right to view the content of this file using the cat's
21
00:01:31,850 --> 00:01:35,190
command type cat and the name of the file.
22
00:01:36,790 --> 00:01:37,760
And here we go.
23
00:01:37,780 --> 00:01:41,130
These are all the commands that I've been typing so far.
24
00:01:41,290 --> 00:01:47,260
You can recognize some of them when we're doing the Ls on the temp directory and it's 192.
25
00:01:47,650 --> 00:01:55,360
And I can just scroll up and down to see the previous commands that I've been using earthing is.
26
00:01:55,380 --> 00:02:00,260
Sometimes you log into systems remotely and you don't have the option of a scroll.
27
00:02:00,260 --> 00:02:03,960
You can just scroll up and down using your mouse on the sidebar.
28
00:02:04,200 --> 00:02:06,030
So what do you do in this case.
29
00:02:06,180 --> 00:02:14,340
You can use instead the shift page up or page down to move up one page or down one page.
30
00:02:14,350 --> 00:02:15,740
All right this is perfect.
31
00:02:15,930 --> 00:02:20,940
But sometimes you might want to view the file that's a little bit too big and it catechumen might not
32
00:02:20,940 --> 00:02:27,450
be that efficient scrolling up pages and down pages and getting lost and all that go with all that content
33
00:02:27,780 --> 00:02:29,390
might be a bit inefficient.
34
00:02:29,670 --> 00:02:32,090
So what's a more efficient way to do that.
35
00:02:32,280 --> 00:02:34,760
They'll be using the less commands.
36
00:02:34,920 --> 00:02:35,570
Let's try that.
37
00:02:35,580 --> 00:02:36,770
I'm going to do less.
38
00:02:36,810 --> 00:02:38,310
Bash history.
39
00:02:38,310 --> 00:02:42,870
Now what this does is that it displays the top of the foot and it just stops it.
40
00:02:43,140 --> 00:02:47,280
If I want to navigate the file there are many options that I can use.
41
00:02:47,280 --> 00:02:54,120
I could just go down one line or up one line using the arrow keys or I can go down one page using the
42
00:02:54,120 --> 00:03:00,990
space scheme or I can go up and down full pages using the page up and page down.
43
00:03:02,310 --> 00:03:06,720
And when I'm done I can hit the q key to wit.
44
00:03:07,230 --> 00:03:14,370
So there was a difference between cabbed and less one command that you can also use the day quick sneak
45
00:03:14,370 --> 00:03:19,620
peek into files that say you want to verify that this is the file that you want before you start working
46
00:03:19,620 --> 00:03:21,800
on it but you don't want to open the whole fight.
47
00:03:21,930 --> 00:03:22,440
What do you do.
48
00:03:22,440 --> 00:03:28,610
You can use a command like the head's commands the head command shows you the first ten lines of a fight.
49
00:03:28,890 --> 00:03:30,680
And this is what it looks like.
50
00:03:30,720 --> 00:03:32,860
Can you guess what the command does.
51
00:03:33,030 --> 00:03:34,720
Let you try that one on your own.
5365
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.