WEBVTT - This file was automatically generated by VIMEO

0
00:00:04.400 --> 00:00:05.600
Welcome back to this video.

1
00:00:06.700 --> 00:00:09.300
So let's quickly see some more

2
00:00:09.300 --> 00:00:12.700
 Hardware system information commands that

3
00:00:12.700 --> 00:00:15.500
 are useful for us. All right.

4
00:00:15.500 --> 00:00:18.500
 So let's quickly begin with this command, which is

5
00:00:18.500 --> 00:00:20.200
 lsof.

6
00:00:21.100 --> 00:00:25.000
Now when I type this command and hit enter it

7
00:00:24.200 --> 00:00:27.800
 is going to list all the open files

8
00:00:27.800 --> 00:00:29.800
 on my Linux system.

9
00:00:30.700 --> 00:00:33.700
So when I hit enter you can see these are

10
00:00:33.700 --> 00:00:36.800
 all the list of open commands on to

11
00:00:36.800 --> 00:00:38.000
 my operating system.

12
00:00:39.500 --> 00:00:39.900
Perfect.

13
00:00:40.500 --> 00:00:43.800
Now if I want to specifically see

14
00:00:43.800 --> 00:00:46.800
 the files which are being opened by

15
00:00:46.800 --> 00:00:49.200
 a specific user. So for

16
00:00:49.200 --> 00:00:54.200
 that I need to type the command which is lsof space

17
00:00:53.400 --> 00:00:56.800
 - U and specify the

18
00:00:56.800 --> 00:01:00.100
 user. So let's say the user is root currently

19
00:00:59.100 --> 00:01:01.000
 and hit enter.

20
00:01:02.300 --> 00:01:05.600
And you can see these are all the list of files

21
00:01:05.600 --> 00:01:09.000
 which has been opened by the user root.

22
00:01:08.600 --> 00:01:11.400
 You can specify any user

23
00:01:11.400 --> 00:01:14.400
 that you want that you are currently logged in.

24
00:01:15.700 --> 00:01:19.000
All right. So the next command is free. Now

25
00:01:18.800 --> 00:01:21.700
 this command displays the

26
00:01:21.700 --> 00:01:24.700
 free and the used memory into

27
00:01:24.700 --> 00:01:27.500
 your computer. So let us type free and

28
00:01:27.500 --> 00:01:28.200
 hit enter.

29
00:01:29.100 --> 00:01:32.700
And here you can see the memory, which is total.

30
00:01:33.800 --> 00:01:37.000
Used free share cash

31
00:01:36.500 --> 00:01:40.200
 and available. Now these numbers

32
00:01:39.200 --> 00:01:42.700
 may look like something weird.

33
00:01:42.700 --> 00:01:45.500
 So to get the output in human

34
00:01:45.500 --> 00:01:48.500
 readable format. We're going to type the command free

35
00:01:48.500 --> 00:01:51.900
 hyphen H, which means the

36
00:01:51.900 --> 00:01:54.500
 output is going to be shown into

37
00:01:54.500 --> 00:01:56.100
 the human readable format.

38
00:01:56.800 --> 00:01:59.800
Now this makes sense and we can see the total

39
00:01:59.800 --> 00:02:03.400
 memory given to this computer is 2.9 GB

40
00:02:02.400 --> 00:02:06.400
 out of which 701 MB

41
00:02:05.400 --> 00:02:09.700
 is used. It it MB is

42
00:02:09.700 --> 00:02:11.000
 free currently.

43
00:02:11.900 --> 00:02:14.800
All right, if you want to see the output in

44
00:02:14.800 --> 00:02:17.700
 GB, you can just simply take free

45
00:02:17.700 --> 00:02:19.300
 hyphen G.

46
00:02:20.200 --> 00:02:24.000
Hit enter you can see the output over here free hyphen

47
00:02:23.200 --> 00:02:26.900
 M and you can see the output similarly

48
00:02:26.900 --> 00:02:28.800
 like this. Alright.

49
00:02:29.500 --> 00:02:32.800
Now if you want to see what is

50
00:02:32.800 --> 00:02:36.000
 the disk usage, you can simply type du

51
00:02:35.400 --> 00:02:38.100
 and hit enter and you will

52
00:02:38.100 --> 00:02:40.900
 be able to see the disk usage onto this computer.

53
00:02:41.700 --> 00:02:44.900
Also, if you want to see the free disk space

54
00:02:44.900 --> 00:02:47.600
 this type DF and hit enter and

55
00:02:47.600 --> 00:02:50.500
 you will be able to see the disk space into this

56
00:02:50.500 --> 00:02:50.700
 computer.

57
00:02:51.600 --> 00:02:55.800
Now in case you want to see periodic updates

58
00:02:55.800 --> 00:02:58.800
 of disk or memory for that,

59
00:02:58.800 --> 00:03:03.000
 you can simply type the command watch this DF

60
00:03:01.000 --> 00:03:04.400
 hyphen H

61
00:03:04.400 --> 00:03:07.600
 and human readable format and

62
00:03:07.600 --> 00:03:11.200
 here you can see every 2.0 seconds.

63
00:03:10.200 --> 00:03:13.000
 This command will show you

64
00:03:13.600 --> 00:03:16.400
 the periodic updates of what is

65
00:03:16.400 --> 00:03:19.400
 the disc into this computer. You can

66
00:03:19.400 --> 00:03:22.600
 simply come out of this by pressing Ctrl C.

67
00:03:22.600 --> 00:03:24.200
 You can also see

68
00:03:25.400 --> 00:03:25.700
the

69
00:03:26.900 --> 00:03:30.000
process usage by typing the command watch

70
00:03:29.900 --> 00:03:32.900
 top and hit enter. Alright,

71
00:03:32.900 --> 00:03:34.600
 let me just cancel this as well.

72
00:03:35.400 --> 00:03:38.500
I hope you guys understood how you can execute a command and

73
00:03:38.500 --> 00:03:41.200
 you can also see the periodic updates for that

74
00:03:41.200 --> 00:03:43.400
 command that is happening in real time.

75
00:03:43.900 --> 00:03:45.600
I hope you guys understood. Thank you.
