All language subtitles for 030 Linux Command-Line Interface (CLI) basics_-subtitle-en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

1

Hello everybody and welcome to this tutorial.

Today, I will go over a few basic commands

2

you will need in order to follow this course

through. There are four basic commands that

3

are used in order to navigate within the terminal,

or through the file system, to figure out

4

where you are at the moment, to copy things,

move things, get listings of files, folders,

5

see the contents, remove them, change the

ownership of files or change the modes of

6

files. You will see shortly what I mean. First

off, we have "cd" which is change directories.

7

If I just type in cd/home, I am going to navigate

over to my home directory. So, "cd" stands

8

for change directory. As I said before, you

are literally changing your working directory.

9

If you type in "cd.." you will always go one

step back. So ".." is always the previous

10

folder. It's a shortcut you will use fairly

often. Next up, we have "ls." "Ls" shows you

11

the listing off the current folder contents.

You can also use, for example, "ls /home/"

12

and you get the listing of a specified folder

as well. Typing "ls" in and of its own give

13

you the listing of the current folder, as

opposed to typing "ls" and then a path to

14

a folder, which will give you a listing for

a specified folder. In addition to that, you

15

also have "ls - l" which will give you a long

listing. That will tell you who the owners

16

are, the size, the date, the type, the permissions

and so on and so forth. However, one of the

17

more common usages of "ls" is "ls - la" to

show the hidden files as well. You might notice

18

that I am not using "ll" like I generally

use in Fedora. It goes "- ll" command not

19

found. I guess I could install it here as

well, but it doesn't really matter. It performs

20

a fairly similar function as "ls" does, but

it's a bit faster to type in. Now I'm just

21

going to go ahead and clear this. Next up,

is "pwd" which prints working directory. Some

22

of you may find it confusing, but / in all

Linux-like systems simply refers to the root

23

directory, to the beginning. To the root directory

from where all the files are located and from

24

where everything begins. Let me just make

it clear. I'm going to navigate over to home,

25

and then use "pwd." You can see that I am

in home at the moment. So, print working directory

26

does exactly what the name itself says, it

prints your current working directory. Next

27

up, we have our "cp" command, which we already

used in order to copy VirtualBox guest additions

28

from one place to another. It's fairly simple.

You type in "cp /path" -- Let's do a real

29

example. So, if I, for example, go ahead and

type in "cp VBoxLinuxAdditions.run," and if

30

I want to copy it to somewhere, let's say

that I wish to copy it to "/var/". I will

31

delete, of course, I will show you how to

do that as well, but it's fairly simple. You

32

specify what you want to copy and where you

want to copy it to. Keep in mind, you could

33

have actually typed in here a folder, a full

path, to this VirtualBoxguestadditions.run.

34

You don't actually need to be in the home

directory. This "-v" option gives us this.

35

It tells us what was copied where. It's a

very useful option. Let me show you what would

36

happen if I didn't have that. Just like this,

you see nothing. There is no output or anything

37

of the kind. This is this is fairly simple.

When you have one very small file and you

38

don't really care, but when you will have

a large file, let's say it's 20GB or so, you

39

are copying you'll just have a blank screen

below. Nothing will be happening. You will

40

not be able to figure out whether the copying

process is going on or if it has actually

41

crashed, bugged or something of a kind. Just

pass the "-v" option which is always useful

42

to have simply because the machine actually

tells you what it is doing. Now, you might've

43

noticed that all of these commands, more or

less, have their own arguments, which can

44

be passed to them in order to modify what

the command does. You can view a listing of

45

these arguments. You do not need to memorize

them all. So, let's take an example of "cp

46

--help." This is a universal way of getting

help on the subject within the terminal. You

47

type in the command, a space, then "--help,"

press enter and you get a listing of possibilities.

48

So, I know it looks a bit messy and a bit

difficult to see, but you don't actually need

49

to look at all of these things here. Just

scroll upwards and there you go. You can see

50

all the arguments. They are listed clearly

here. You have the argument here, and an explanation

51

of what that argument does. For the time being,

you're not going to be able to memorize all

52

of these. Over time, as you practice more,

and start actually is using these commands,

53

you will be remembering more, and more, and

more, and more, without actually wish it.

54

Basically it will be caching the information,

so to say. Anyway, over here, in the upper

55

part of this help menu you got usage. In usage,

you get the format or the syntax of the command.

56

So basically, "cp" option, and then you specify

your source and destination. Very simple,

57

no problems there. This is universal for all

of the commands, you can always use the help

58

menu. However, in addition to the help menu,

you also have man pages. So if I type in man,

59

and I can use the command "pwd." The man pages

on "pwd" give me a ton of information. You

60

can see it gives you the name. It's called

synopsis here, but basically the syntax of

61

the command. You get a full description of

what the command does, a full description

62

of the arguments, you even get the author

who actually wrote, some notes, copyright

63

and some references to something else as well.

This is a very short man page because "pwd"

64

is a very short, basic command. For example,

if I was to type in, "man grep," you can see

65

that the man page is a lot bigger. I'm just

scrolling down and it seems to go on. "Grep"

66

is a multipurpose command which I'll show

to you in a moment. I just wanted to show

67

the difference between a basic and a more

complex command. Let me just go ahead and

68

clear the screen. Next up, we have move so,

"mv." That will cause a folder to move. This

69

is how you rename folders too, or files. So

just go ahead and navigate over to "var,"

70

where I have actually copied this file. Excellent.

If I type, "mv VBoxLinuxAdditions. I can move

71

to some different folder, under some different

name, or I can just rename it within my current

72

folder. If I just type

it in "RandomIsNotSoRandom." I'm just going

to rename it to that. Say ".run." You can

73

put whatever extension you want. Of course,

it won't function the same. I am just showing

74

you the way of renaming files. if I do "ls"

again, you see, that VboxLinuxadditions.run

75

has been successfully renamed to RandomIsNotSoRandom.run.

I can also do this. I can RandomIsNotSoRandom

76

to my home directory. If I do "ls," specify

a path to my home directory and press enter,

77

you see that I've actually moved it here.

Unlike the copy command, it doesn't retain

78

the original within wherever the source might

have been. So, once you move it, it's gone

79

from the source folder, however, it's going

to appear in the destination one. Also tricky

80

one: when you delete something with move,

when you move something over something else,

81

it's so difficult to recover, if not impossible.

Also, be very careful with deleting files

82

in Linux. Once you delete them from the terminal,

you will not be able to recover them. There

83

are some complex procedures that might give

you a fraction of what you wanted to recover.

84

If you remove it from the terminal. It's very,

very, very difficult. It's not like Windows

85

or something. When you delete something in

Windows, you can always recover. It's like

86

you basically didn't delete it. You just don't

see it. But here, when you delete something

87

it's gone permanently. So take great caution,

take care but don't be afraid. I mean, over

88

time, these things become second nature to

you. You will take it into consideration without

89

even thinking about it. I'll go ahead and

clear the screen. Next up, we have "cat."

90

Let's navigate home. Let's type "cat RandomIsNotSoRandom."

You see what it does. It actually shows you--

91

this is a bit of a longer file-- all the contents

of that file, whatever that might be. This

92

content is not pretty at all. You can't read

it like this, but doesn't matter. Let's just

93

create another file. So, nano is my favorite

text editor from the terminal. You will need

94

to learn how to use the terminal text editors

because you don't want to be switching back

95

and forth between GUI text editors and working

on something a terminal. It's extremely time-consuming.

96

Here on Kali Linux, you can actually edit

things with root. However, if you are using

97

some other distribution or something of a

kind, most of the GUI text editors will not

98

be able to run as root. You will get an error

message. So that can be a bit problematic.

99

That's why you should always learn how to

use text editors that are terminal text editors.

100

Just type in "nano" and type in the name of

the file you wish to create. For example,

101

I'm just going to go ahead and type in "test."

Since this is a test file no need to give

102

it any extensions or anything of the kind.

There we go, we are in the nano text editor.

103

So here I can write some text, "Some random

text goes here." You have a variety of options.

104

This carrot sign, "^X" simply means control-X.

If you press control-x you are going to exit.

105

Control-O, write out, that's basically save.

You don't need this. where is, is basically

106

how you search things. Hit control-V to search.

Let's look for "random" press enter and there

107

you go. It's going to point to random. It

found it, no problems. Previous page don't

108

need and the next page we are not going to

be that engaged with it. So cut text is also

109

very nice. It allows you to actually remove

large portions of text at a relatively fast

110

rate. So if I just say control-K, it's going

to remove the current line where the cursor

111

is, not what you have selected with your mouse.

Just so you know. Let me just bring that back.

112

I'm just going to go ahead and continue talking

about this in part two, in the following tutorial.

113

Until then, I bid you farewell.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.