课程: Linux Tips
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Using watch and time
- [Instructor] In this episode, I'd like to take a few minutes to show you two commands that can be used monitor and measure activities. The first one called watch, runs a command at a given interval and displays the output. And the second, called time, shows you how long a command took to run. The watch command is useful if you have a program that gives you output, but you want to see how that output changes over time. For example, the df command shows the amount of space used and free on a given file system, but only at the moment in time when it runs. In order to show the watch command in action, I'll open up tmux here on my system, and then split the screen so we can see the output of df, and also make changes that will affect the output. Now I'll run df but with the watch command in front of it. By default, watch runs whatever you give it every two seconds, as we can see up in the top left here, though that interval…
内容
-
-
-
-
-
-
-
-
-
-
-
-
-
(已锁定)
Exploring Windows Subsystem for Linux2 分钟 20 秒
-
(已锁定)
Windows Subsystem for Linux7 分钟 20 秒
-
(已锁定)
Exploring virtualization5 分钟 28 秒
-
(已锁定)
Exploring containers5 分钟 19 秒
-
(已锁定)
Exploring Fedora3 分钟 8 秒
-
(已锁定)
Ubuntu desktop 18.042 分钟
-
(已锁定)
Changing the default shell3 分钟 30 秒
-
(已锁定)
Exploring other shells2 分钟 5 秒
-
(已锁定)
Blocking ads on your network with Pi-hole6 分钟 35 秒
-
(已锁定)
Exploring CentOS2 分钟 6 秒
-
(已锁定)
Exploring Zsh5 分钟 41 秒
-
(已锁定)
Osquery4 分钟 28 秒
-
(已锁定)
Exploring fish5 分钟 21 秒
-
Exploring csh and tcsh2 分钟 34 秒
-
(已锁定)
Using diff to compare files3 分钟 54 秒
-
(已锁定)
Using xargs3 分钟 41 秒
-
(已锁定)
Configuring and managing logs4 分钟 32 秒
-
(已锁定)
Job control3 分钟 59 秒
-
(已锁定)
Using watch and time3 分钟 5 秒
-
(已锁定)
Recording a terminal session3 分钟 14 秒
-
(已锁定)
Exploring Debian1 分钟 49 秒
-
(已锁定)
Exploring SUSE Linux7 分钟 33 秒
-
(已锁定)
Exploring Arch Linux16 分钟 44 秒
-
(已锁定)
Exploring Alpine Linux6 分钟 18 秒
-
(已锁定)
Exploring Linux Mint5 分钟 14 秒
-
(已锁定)
Exploring Amazon Linux5 分钟 8 秒
-
(已锁定)
UNIX time and the 2038 problem6 分钟 36 秒
-
(已锁定)
Visual file management with Midnight Commander5 分钟 42 秒
-
(已锁定)
Terminal on the go5 分钟 1 秒
-
(已锁定)
FUSE and SSHFS3 分钟 54 秒
-
(已锁定)
Removing Linux4 分钟 44 秒
-
(已锁定)
WSL distros on Windows 103 分钟 13 秒
-
(已锁定)
Embedded Linux4 分钟 25 秒
-
(已锁定)
Exploring Netboot2 分钟 43 秒
-
(已锁定)
Exploring ZFS3 分钟 53 秒
-
(已锁定)
Docker on Linux5 分钟 24 秒
-
(已锁定)
-
-