Afrikaans
Akan
Albanian
Amharic
Arabic
Armenian
Azerbaijani
Basque
Belarusian
Bemba
Bengali
Bihari
Bosnian
Breton
Bulgarian
Cambodian
Catalan
Cebuano
Cherokee
Chichewa
Chinese (Simplified)
Chinese (Traditional)
Corsican
Croatian
Czech
Danish
Dutch
English
Esperanto
Estonian
Ewe
Faroese
Filipino
Finnish
French
Frisian
Ga
Galician
Georgian
German
Greek
Guarani
Gujarati
Haitian Creole
Hausa
Hawaiian
Hebrew
Hindi
Hmong
Hungarian
Icelandic
Igbo
Indonesian
Interlingua
Irish
Italian
Japanese
Javanese
Kannada
Kazakh
Kinyarwanda
Kirundi
Kongo
Korean
Krio (Sierra Leone)
Kurdish
Kurdish (Soranรฎ)
Kyrgyz
Laothian
Latin
Latvian
Lingala
Lithuanian
Lozi
Luganda
Luo
Luxembourgish
Macedonian
Malagasy
Malay
Malayalam
Maltese
Maori
Marathi
Mauritian Creole
Moldavian
Mongolian
Myanmar (Burmese)
Montenegrin
Nepali
Nigerian Pidgin
Northern Sotho
Norwegian
Norwegian (Nynorsk)
Occitan
Oriya
Oromo
Pashto
Persian
Polish
Portuguese (Brazil)
Portuguese (Portugal)
Punjabi
Quechua
Romanian
Romansh
Runyakitara
Russian
Samoan
Scots Gaelic
Serbian
Serbo-Croatian
Sesotho
Setswana
Seychellois Creole
Shona
Sindhi
Slovak
Slovenian
Somali
Spanish
Spanish (Latin American)
Sundanese
Swahili
Swedish
Tajik
Tamil
Tatar
Telugu
Thai
Tigrinya
Tonga
Tshiluba
Tumbuka
Turkish
Turkmen
Twi
Uighur
Ukrainian
Urdu
Uzbek
Vietnamese
Welsh
Wolof
Xhosa
Yiddish
Yoruba
Zulu
1
All right let's continue.
2
We've seen so far how we can see the content of folders and how we can create fights but we haven't
3
seen yet how we can see the contents of fights.
4
Here is the explanation for the section on every Linux system.
5
There's a hidden file called the bash history and this file retains the last five hundred commands executed
6
by any user.
7
It usually is in the user's home that actually and one of the things you want to do after the exploit
8
the Linux machine is look at the content of this fight because it gives you a very good idea of what
9
this user has been up to what have they been creating and what they've been interacting with.
10
So going to be using this file as our example for the section we're going to be looking at the cat commands
11
which is short for concatenate the gap can display the contents of a file in one go.
12
We're also going to be looking at the less command which is a little bit more efficient than the cat
13
commands.
14
And I'm going to let you on your own try to head and take commands.
15
So let's see how this looks like I'm doing him S1 is a remember the mind shows me all files including
16
the hidden ones and the L is the long listing.
17
And here we go.
18
This is my batch file and see this dot for the bash history.
19
This indicates that this is a hidden file.
20
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
command type cat and the name of the file.
22
And here we go.
23
These are all the commands that I've been typing so far.
24
You can recognize some of them when we're doing the Ls on the temp directory and it's 192.
25
And I can just scroll up and down to see the previous commands that I've been using earthing is.
26
Sometimes you log into systems remotely and you don't have the option of a scroll.
27
You can just scroll up and down using your mouse on the sidebar.
28
So what do you do in this case.
29
You can use instead the shift page up or page down to move up one page or down one page.
30
All right this is perfect.
31
But sometimes you might want to view the file that's a little bit too big and it catechumen might not
32
be that efficient scrolling up pages and down pages and getting lost and all that go with all that content
33
might be a bit inefficient.
34
So what's a more efficient way to do that.
35
They'll be using the less commands.
36
Let's try that.
37
I'm going to do less.
38
Bash history.
39
Now what this does is that it displays the top of the foot and it just stops it.
40
If I want to navigate the file there are many options that I can use.
41
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
space scheme or I can go up and down full pages using the page up and page down.
43
And when I'm done I can hit the q key to wit.
44
So there was a difference between cabbed and less one command that you can also use the day quick sneak
45
peek into files that say you want to verify that this is the file that you want before you start working
46
on it but you don't want to open the whole fight.
47
What do you do.
48
You can use a command like the head's commands the head command shows you the first ten lines of a fight.
49
And this is what it looks like.
50
Can you guess what the command does.
51
Let you try that one on your own.
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.