Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:01,900 --> 00:00:08,650
All right time to roll up our sleeves and get our hands dirty let's familiarize ourselves with some
2
00:00:08,650 --> 00:00:11,890
basic commands and Linux.
3
00:00:11,890 --> 00:00:16,010
But before we do that I want to keep something very important in mind.
4
00:00:16,090 --> 00:00:18,310
Linux is case sensitive.
5
00:00:19,280 --> 00:00:25,580
So if we're typing the word password for example and we use a capital P that's very different than using
6
00:00:25,610 --> 00:00:32,000
a small p I've unfortunately seen this happen and training videos where the instructors are trying to
7
00:00:32,000 --> 00:00:37,640
access some files or using some commands and they're using the wrong capitalization and they're wondering.
8
00:00:37,640 --> 00:00:38,960
Live in the training.
9
00:00:39,080 --> 00:00:40,990
Why is it not working.
10
00:00:41,060 --> 00:00:43,520
I can believe that instructors could do that.
11
00:00:43,520 --> 00:00:45,520
Please be careful about this.
12
00:00:45,680 --> 00:00:49,160
If you're new to Linux you're completely forgiven to do that.
13
00:00:49,280 --> 00:00:51,210
If you don't the structure of doing that.
14
00:00:51,320 --> 00:00:52,620
Not as much.
15
00:00:52,780 --> 00:00:56,000
Are they trying to access Foz and the Nexus not as forgiving as Windows.
16
00:00:56,000 --> 00:00:57,370
Unfortunately so.
17
00:00:57,500 --> 00:01:03,380
So a file that has the name test using capital-T if you try to access the test file using a small t
18
00:01:03,620 --> 00:01:05,150
that would not work.
19
00:01:05,180 --> 00:01:11,560
Now though we talked about this he had other objectives for this section we're going to be learning
20
00:01:11,560 --> 00:01:18,630
how to move around the file system how to change directories and jump from one directory to another.
21
00:01:18,630 --> 00:01:25,160
We're going to be learning how to create files and directories then obviously we want to see the content
22
00:01:25,160 --> 00:01:26,460
of these files and directories.
23
00:01:26,450 --> 00:01:28,310
We're going to learn how to do that as well.
24
00:01:28,610 --> 00:01:36,710
And last but not least we're going to be learning how to copy move and delete these files and directories.
25
00:01:36,740 --> 00:01:41,080
There are a couple of things that we want to keep in mind when we're talking about commands in Linux.
26
00:01:41,090 --> 00:01:49,700
The fact that commands have a certain structure and with this structure come to things options and arguments
27
00:01:50,810 --> 00:01:59,270
options are things that change how the tool or the command behaves and the usually letters preceded
28
00:01:59,270 --> 00:02:00,520
by a hyphen.
29
00:02:00,650 --> 00:02:02,600
You can use more than one option.
30
00:02:03,490 --> 00:02:08,740
So for example the ls command is a command that lists contents of a directory.
31
00:02:08,740 --> 00:02:14,510
Now don't worry we're going to be seeing this practically later on the LS on itself would behave in
32
00:02:14,510 --> 00:02:15,680
a certain manner.
33
00:02:15,710 --> 00:02:22,950
If we type for example L S minus H or minus one help it will display something completely different.
34
00:02:23,330 --> 00:02:25,660
This is the option that we're using here.
35
00:02:25,660 --> 00:02:29,050
The minus H minus a and so on.
36
00:02:29,090 --> 00:02:34,010
The other thing that we want to be taking into consideration is that commands have also arguments on
37
00:02:34,010 --> 00:02:41,140
top of options and arguments usually are extra pieces of information to tell the command what to act
38
00:02:41,140 --> 00:02:42,100
on.
39
00:02:42,100 --> 00:02:49,390
So for example if I'm using the L as command without any arguments the LS will display the content of
40
00:02:49,390 --> 00:02:50,440
my current directory.
41
00:02:50,440 --> 00:02:56,620
So for example if I'm in the documents directory and I type s I'm going to see the contents of the documents
42
00:02:56,620 --> 00:02:57,770
directory.
43
00:02:57,760 --> 00:03:04,870
If however I type an S for those lasht desktop I'm going to be seeing the contents of the desktop directory
44
00:03:05,460 --> 00:03:13,330
in this particular case desktop as my command arguments the example you see in front of you is L S minus
45
00:03:13,390 --> 00:03:22,060
l forward slash desktop minus L is the option and it changes the way that displays the content of desktop
46
00:03:22,330 --> 00:03:24,410
which is my argument.
47
00:03:24,460 --> 00:03:30,550
Again if this sounds confusing don't we we're going to be seeing plenty of examples and I promise you
48
00:03:30,550 --> 00:03:33,510
we're going to be finding this very easy in no time.
49
00:03:33,520 --> 00:03:39,310
So what are the basic commands that we're going to be exploring in this section PWT which stands for
50
00:03:39,520 --> 00:03:47,560
print working directory CD which is change directory and Dione on which is to make or create a directory
51
00:03:47,890 --> 00:03:55,250
touch which we use to create a file and S which is a commando we use to list directory content.
52
00:03:55,240 --> 00:04:01,250
We're going to be also looking at the cat commands which means concatenate or display a file contains
53
00:04:01,630 --> 00:04:08,740
less command which shows the file content and a different way had dash and stance for the numbers for
54
00:04:08,740 --> 00:04:16,560
example had minus 10 had minus 50 which displays the first and number of lines of a file by default
55
00:04:16,710 --> 00:04:16,990
then.
56
00:04:17,000 --> 00:04:23,740
So for example if I type had filed that XTi I'll see the first 10 lines on the file the XTi tail will
57
00:04:23,740 --> 00:04:31,660
show me the last 10 lines or 50 lines or whatever I'd replace and with tail minus f tells me to follow
58
00:04:31,720 --> 00:04:33,550
the end of a changing file.
59
00:04:33,580 --> 00:04:40,840
If it's a live file if it's changing while I'm looking at it I can use that tail minus the C command
60
00:04:40,990 --> 00:04:45,980
stands for copy file and vi is move or rename fine.
61
00:04:46,350 --> 00:04:51,180
And our MDI are for removing files and or directories.
6757
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.