mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-03-09 01:30:10 +08:00
Merge remote-tracking branch 'LCTT/master'
This commit is contained in:
commit
9207d3e67b
@ -0,0 +1,87 @@
|
||||
There’s a Server in Every Serverless Platform
|
||||
======
|
||||
|
||||

|
||||
Serverless computing or Function as a Service (FaaS) is a new buzzword created by an industry that loves to coin new terms as market dynamics change and technologies evolve. But what exactly does it mean? What is serverless computing?
|
||||
|
||||
Before getting into the definition, let’s take a brief history lesson from Sirish Raghuram, CEO and co-founder of Platform9, to understand the evolution of serverless computing.
|
||||
|
||||
“In the 90s, we used to build applications and run them on hardware. Then came virtual machines that allowed users to run multiple applications on the same hardware. But you were still running the full-fledged OS for each application. The arrival of containers got rid of OS duplication and process level isolation which made it lightweight and agile,” said Raghuram.
|
||||
|
||||
Serverless, specifically, Function as a Service, takes it to the next level as users are now able to code functions and run them at the granularity of build, ship and run. There is no complexity of underlying machinery needed to run those functions. No need to worry about spinning containers using Kubernetes. Everything is hidden behind the scenes.
|
||||
|
||||
“That’s what is driving a lot of interest in function as a service,” said Raghuram.
|
||||
|
||||
### What exactly is serverless?
|
||||
|
||||
There is no single definition of the term, but to build some consensus around the idea, the [Cloud Native Computing Foundation (CNCF)][1] Serverless Working Group wrote a [white paper][2] to define serverless computing.
|
||||
|
||||
According to the white paper, “Serverless computing refers to the concept of building and running applications that do not require server management. It describes a finer-grained deployment model where applications, bundled as one or more functions, are uploaded to a platform and then executed, scaled, and billed in response to the exact demand needed at the moment.”
|
||||
|
||||
Ken Owens, a member of the Technical Oversight Committee at CNCF said that the primary goal of serverless computing is to help users build and run their applications without having to worry about the cost and complexity of servers in terms of provisioning, management and scaling.
|
||||
|
||||
“Serverless is a natural evolution of cloud-native computing. The CNCF is advancing serverless adoption through collaboration and community-driven initiatives that will enable interoperability,” [said][3] Chris Aniszczyk, COO, CNCF.
|
||||
|
||||
### It’s not without servers
|
||||
|
||||
First things first, don’t get fooled by the term “serverless.” There are still servers in serverless computing. Remember what Raghuram said: all the machinery is hidden; it’s not gone.
|
||||
|
||||
The clear benefit here is that developers need not concern themselves with tasks that don’t add any value to their deliverables. Instead of worrying about managing the function, they can dedicate their time to adding featured and building apps that add business value. Time is money and every minute saved in management goes toward innovation. Developers don’t have to worry about scaling based on peaks and valleys; it’s automated. Because cloud providers charge only for the duration that functions are run, developers cut costs by not having to pay for blinking lights.
|
||||
|
||||
But… someone still has to do the work behind the scenes. There are still servers offering FaaS platforms.
|
||||
|
||||
In the case of public cloud offerings like Google Cloud Platform, AWS, and Microsoft Azure, these companies manage the servers and charge customers for running those functions. In the case of private cloud or datacenters, where developers don’t have to worry about provisioning or interacting with such servers, there are other teams who do.
|
||||
|
||||
The CNCF white paper identifies two groups of professionals that are involved in the serverless movement: developers and providers. We have already talked about developers. But, there are also providers that offer serverless platforms; they deal with all the work involved in keeping that server running.
|
||||
|
||||
That’s why many companies, like SUSE, refrain from using the term “serverless” and prefer the term function as a service, because they offer products that run those “serverless” servers. But what kind of functions are these? Is it the ultimate future of app delivery?
|
||||
|
||||
### Event-driven computing
|
||||
|
||||
Many see serverless computing as an umbrella that offers FaaS among many other potential services. According to CNCF, FaaS provides event-driven computing where functions are triggered by events or HTTP requests. “Developers run and manage application code with functions that are triggered by events or HTTP requests. Developers deploy small units of code to the FaaS, which are executed as needed as discrete actions, scaling without the need to manage servers or any other underlying infrastructure,” said the white paper.
|
||||
|
||||
Does that mean FaaS is the silver bullet that solves all problems for developing and deploying applications? Not really. At least not at the moment. FaaS does solve problems in several use cases and its scope is expanding. A good use case of FaaS could be the functions that an application needs to run when an event takes place.
|
||||
|
||||
Let’s take an example: a user takes a picture from a phone and uploads it to the cloud. Many things happen when the picture is uploaded - it’s scanned (exif data is read), a thumbnail is created, based on deep learning/machine learning the content of the image is analyzed, the information of the image is stored in the database. That one event of uploading that picture triggers all those functions. Those functions die once the event is over. That’s what FaaS does. It runs code quickly to perform all those tasks and then disappears.
|
||||
|
||||
That’s just one example. Another example could be an IoT device where a motion sensor triggers an event that instructs the camera to start recording and sends the clip to the designated contant. Your thermostat may trigger the fan when the sensor detects a change in temperature. These are some of the many use cases where function as a service make more sense than the traditional approach. Which also says that not all applications (at least at the moment, but that will change as more organizations embrace the serverless platform) can be run as function as service.
|
||||
|
||||
According to CNCF, serverless computing should be considered if you have these kinds of workloads:
|
||||
|
||||
* Asynchronous, concurrent, easy to parallelize into independent units of work
|
||||
|
||||
* Infrequent or has sporadic demand, with large, unpredictable variance in scaling requirements
|
||||
|
||||
* Stateless, ephemeral, without a major need for instantaneous cold start time
|
||||
|
||||
* Highly dynamic in terms of changing business requirements that drive a need for accelerated developer velocity
|
||||
|
||||
|
||||
|
||||
|
||||
### Why should you care?
|
||||
|
||||
Serverless is a very new technology and paradigm, just the way VMs and containers transformed the app development and delivery models, FaaS can also bring dramatic changes. We are still in the early days of serverless computing. As the market evolves, consensus is created and new technologies evolve, and FaaS may grow beyond the workloads and use cases mentioned here.
|
||||
|
||||
What is becoming quite clear is that companies who are embarking on their cloud native journey must have serverless computing as part of their strategy. The only way to stay ahead of competitors is by keeping up with the latest technologies and trends.
|
||||
|
||||
It’s about time to put serverless into servers.
|
||||
|
||||
For more information, check out the CNCF Working Group's serverless whitepaper [here][2]. And, you can learn more at [KubeCon + CloudNativeCon Europe][4], coming up May 2-4 in Copenhagen, Denmark.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.linux.com/blog/2018/4/theres-server-every-serverless-platform
|
||||
|
||||
作者:[SWAPNIL BHARTIYA][a]
|
||||
选题:[lujun9972](https://github.com/lujun9972)
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:https://www.linux.com/users/arnieswap
|
||||
[1]:https://www.cncf.io/
|
||||
[2]:https://github.com/cncf/wg-serverless/blob/master/whitepaper/cncf_serverless_whitepaper_v1.0.pdf
|
||||
[3]:https://www.cncf.io/blog/2018/02/14/cncf-takes-first-step-towards-serverless-computing/
|
||||
[4]:https://events.linuxfoundation.org/events/kubecon-cloudnativecon-europe-2018/attend/register/
|
@ -1,138 +0,0 @@
|
||||
translating---geekpi
|
||||
|
||||
Yet Another TUI Graphical Activity Monitor, Written In Go
|
||||
======
|
||||
|
||||

|
||||
You already know about “top” command, don’t you? Yes, It provides dynamic real-time information about running processes in any Unix-like operating systems. A few developers have built graphical front-ends for top command, so the users can easily find out their system’s activity in a graphical window. One of them is **Gotop**. As the name implies, Gotop is a TUI graphical activity monitor, written in **Go** language. It is completely free, open source and inspired by [gtop][1] and [vtop][2] programs.
|
||||
|
||||
In this brief guide, we are going to discuss how to install and use Gotop program to monitor a Linux system’s activity.
|
||||
|
||||
### Installing Gotop
|
||||
|
||||
Gotop is written using Go, so we need to install it first. To install Go programming language in Linux, refer the following guide.
|
||||
|
||||
After installing Go, download the latest Gotop binary using the following command.
|
||||
```
|
||||
$ sh -c "$(curl https://raw.githubusercontent.com/cjbassi/gotop/master/download.sh)"
|
||||
|
||||
```
|
||||
|
||||
And, then move the downloaded binary to your $PATH, for example **/usr/local/bin/**.
|
||||
```
|
||||
$ cp gotop /usr/local/bin
|
||||
|
||||
```
|
||||
|
||||
Finally, make it executable using command:
|
||||
```
|
||||
$ chmod +x /usr/local/bin/gotop
|
||||
|
||||
```
|
||||
|
||||
If you’re using Arch-based systems, Gotop is available in **AUR** , so you can install it using any AUR helper programs.
|
||||
|
||||
Using [**Cower**][3]:
|
||||
```
|
||||
$ cower -S gotop
|
||||
|
||||
```
|
||||
|
||||
Using [**Pacaur**][4]:
|
||||
```
|
||||
$ pacaur -S gotop
|
||||
|
||||
```
|
||||
|
||||
Using [**Packer**][5]:
|
||||
```
|
||||
$ packer -S gotop
|
||||
|
||||
```
|
||||
|
||||
Using [**Trizen**][6]:
|
||||
```
|
||||
$ trizen -S gotop
|
||||
|
||||
```
|
||||
|
||||
Using [**Yay**][7]:
|
||||
```
|
||||
$ yay -S gotop
|
||||
|
||||
```
|
||||
|
||||
Using [yaourt][8]:
|
||||
```
|
||||
$ yaourt -S gotop
|
||||
|
||||
```
|
||||
|
||||
### Usage
|
||||
|
||||
Gotop usage is easy! All you have to do is to run the following command from the Terminal.
|
||||
```
|
||||
$ gotop
|
||||
|
||||
```
|
||||
|
||||
There you go! You will see the usage of your system’s CPU, disk, memory, network, cpu temperature and process list in a simple TUI window.
|
||||
|
||||
![][10]
|
||||
|
||||
To show only CPU, Mem and Process widgets, use **-m** flag like below.
|
||||
```
|
||||
$ gotop -m
|
||||
|
||||
```
|
||||
|
||||
![][11]
|
||||
|
||||
You can sort the process table by using the following keyboard shortcuts.
|
||||
|
||||
* **c** – CPU
|
||||
* **m** – Mem
|
||||
* **p** – PID
|
||||
|
||||
|
||||
|
||||
For process navigation, use the following keys.
|
||||
|
||||
* **UP/DOWN** arrows or **j/k** keys to go up and down.
|
||||
* **Ctrl-d** and **Ctrl-u** – up and down half a page.
|
||||
* **Ctrl-f** and **Ctrl-b** – up and down a full page.
|
||||
* **gg** and **G** – iump to top and bottom.
|
||||
|
||||
|
||||
|
||||
Press **< TAB>** to toggle process grouping. To kill the selected process or process group, type **dd**. To select a process, just click on it. To scroll down/up, use the mouse scroll button. To zoom in and zoom out CPU and memory graphs, use **h** and **l**. To display the help menu at anytime, just press **?**.
|
||||
|
||||
**Recommended read:**
|
||||
|
||||
And, that’s all for now. Hope this helps. More good stuffs to come. Stay tuned!
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.ostechnix.com/gotop-yet-another-tui-graphical-activity-monitor-written-in-go/
|
||||
|
||||
作者:[SK][a]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
选题:[lujun9972](https://github.com/lujun9972)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:https://www.ostechnix.com/author/sk/
|
||||
[1]:https://github.com/aksakalli/gtop
|
||||
[2]:https://github.com/MrRio/vtop
|
||||
[3]:https://www.ostechnix.com/cower-simple-aur-helper-arch-linux/
|
||||
[4]:https://www.ostechnix.com/install-pacaur-arch-linux/
|
||||
[5]:https://www.ostechnix.com/install-packer-arch-linux-2/
|
||||
[6]:https://www.ostechnix.com/trizen-lightweight-aur-package-manager-arch-based-systems/
|
||||
[7]:https://www.ostechnix.com/yay-found-yet-another-reliable-aur-helper/
|
||||
[8]:https://www.ostechnix.com/install-yaourt-arch-linux/
|
||||
[9]:data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
[10]:http://www.ostechnix.com/wp-content/uploads/2018/04/Gotop-1.png
|
||||
[11]:http://www.ostechnix.com/wp-content/uploads/2018/04/Gotop-2.png
|
@ -1,3 +1,5 @@
|
||||
translating---geekpi
|
||||
|
||||
A Perl module for better debugging
|
||||
======
|
||||
|
||||
|
@ -0,0 +1,108 @@
|
||||
How to share files between Linux and Windows
|
||||
======
|
||||
|
||||

|
||||
Many people today work on mixed networks, with both Linux and Windows systems playing important roles. Sharing files between the two can be critical at times and is surprisingly easy with the right tools. With fairly little effort, you can copy files from Windows to Linux or Linux to Windows. In this post, we'll look at what is needed to configure your Linux and Windows system to allow you to easily move files from one OS to the other.
|
||||
|
||||
### Copying files between Linux and Windows
|
||||
|
||||
The first step toward moving files between Windows and Linux is to download and install a tool such as PuTTY's pscp. You can get PuTTY from [putty.org][1] and set it up on your Windows system easily. PuTTY comes with a terminal emulator (putty) as well as tools like **pscp** for securely copying files between Linux and Windows systems. When you go to the PuTTY site, you can elect to install all of the tools or pick just the ones you want to use by choosing either the installer or the individual .exe files.
|
||||
|
||||
You will also need to have ssh-server set up and running on your Linux system. This allows it to support the client (Windows side) connection requests. If you don't already have an ssh server set up, the following steps should work on Debian systems (Ubuntu, etc.).
|
||||
```
|
||||
sudo apt update
|
||||
sudo apt install ssh-server
|
||||
sudo service ssh start
|
||||
|
||||
```
|
||||
|
||||
For Red Hat and related Linux systems, use similar commands:
|
||||
```
|
||||
sudo yum install openssh-server
|
||||
sudo systemctl start sshd
|
||||
|
||||
```
|
||||
|
||||
Note that if you are running a firewall such as ufw, you may have to open port 22 to allow the connections.
|
||||
|
||||
Using the **pscp** command, you can then move files from Windows to Linux or vice versa. The syntax is quite straightforward with its "copy from to" commands.
|
||||
|
||||
#### Windows to Linux
|
||||
|
||||
In the command shown below, we are copying a file from a user's account on a Windows system to the /tmp directory on the Linux system.
|
||||
```
|
||||
C:\Program Files\PuTTY>pscp \Users\shs\copy_me.txt shs@192.168.0.18:/tmp
|
||||
shs@192.168.0.18's password:
|
||||
copy_me.txt | 0 kB | 0.1 kB/s | ETA: 00:00:00 | 100%
|
||||
|
||||
```
|
||||
|
||||
#### Linux to Windows
|
||||
|
||||
Moving the files from Linux to Windows is just as easy. Just reverse the arguments.
|
||||
```
|
||||
C:\Program Files\PuTTY>pscp shs@192.168.0.18:/tmp/copy_me.txt \Users\shs
|
||||
shs@192.168.0.18's password:
|
||||
copy_me.txt | 0 kB | 0.1 kB/s | ETA: 00:00:00 | 100%
|
||||
|
||||
```
|
||||
|
||||
The process can be made a little smoother and easier if 1) pscp is in your Windows search path and 2) your Linux system is in your Windows hosts file.
|
||||
|
||||
#### Windows search path
|
||||
|
||||
If you install the PuTTY tools with the PuTTY installer, you will probably find that **C:\Program files\PuTTY** is on your Windows search path. You can check to see if this is the case by typing **echo %path%** in a Windows command prompt (type "cmd" in the search bar to open the command prompt). If it is, you don't need to be concerned with where you are in the file system relative to the pscp executable. Moving into the folder containing the files you want to move will likely prove easier.
|
||||
```
|
||||
C:\Users\shs>pscp copy_me.txt shs@192.168.0.18:/tmp
|
||||
shs@192.168.0.18's password:
|
||||
copy_me.txt | 0 kB | 0.1 kB/s | ETA: 00:00:00 | 100%
|
||||
|
||||
```
|
||||
|
||||
#### Updating your Windows hosts file
|
||||
|
||||
Here's the other little fix. With administrator rights, you can add your Linux system to the Windows host file (C:\Windows\System32\drivers\etc\hosts) and then use the host name in place of its IP address. Keep in mind that this will not work indefinitely if the IP address on your Linux system is dynamically assigned.
|
||||
```
|
||||
C:\Users\shs>pscp copy_me.txt shs@stinkbug:/tmp
|
||||
shs@192.168.0.18's password:
|
||||
hosts | 0 kB | 0.8 kB/s | ETA: 00:00:00 | 100%
|
||||
|
||||
```
|
||||
|
||||
Note that Windows host files are formatted like the /etc/hosts file on Linux systems — IP address, white space and host name. Comments are prefaced with pound signs.
|
||||
```
|
||||
# Linux systems
|
||||
192.168.0.18 stinkbug
|
||||
|
||||
```
|
||||
|
||||
#### Those pesky line endings
|
||||
|
||||
Keep in mind that lines in text files on Windows end with both a carriage return and a linefeed. The pscp tool will not remove the carriage returns to make the files look like Linux text files. Instead, it simply copies the files intact. You might consider installing the **tofrodos** package to enable you to use the **fromdos** and **todos** commands on your Linux system to adjust the files you are moving between platforms.
|
||||
|
||||
### Sharing folders between Windows and Linux
|
||||
|
||||
Sharing folders is an entirely different operation. You end up mounting a Windows directory on your Linux system or a Linux directory on your Windows box so that both systems can use the same set of files rather than copying the files from one system to the other. One of the best tools for this is Samba, which emulates Windows protocols and runs on the Linux system.
|
||||
|
||||
Once Samba is installed, you will be able to mount a Linux folder on Windows or a Windows folder on Linux. This is, of course, very different than copying files as described earlier in this post. Instead, each of the two systems involved will have access to the same files at the same time.
|
||||
|
||||
More tips on choosing the right tool for sharing files between Linux and Windows systems are available [here][2].
|
||||
|
||||
Join the Network World communities on [Facebook][3] and [LinkedIn][4] to comment on topics that are top of mind.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.networkworld.com/article/3269189/linux/sharing-files-between-linux-and-windows.html
|
||||
|
||||
作者:[Sandra Henry-Stocker][a]
|
||||
选题:[lujun9972](https://github.com/lujun9972)
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:https://www.networkworld.com/author/Sandra-Henry_Stocker/
|
||||
[1]:https://www.putty.org
|
||||
[2]:https://www.infoworld.com/article/2617683/linux/linux-moving-files-between-unix-and-windows-systems.html
|
||||
[3]:https://www.facebook.com/NetworkWorld/
|
||||
[4]:https://www.linkedin.com/company/network-world
|
@ -138,4 +138,4 @@ via: [https://opensource.com/article/18/4/gentle-introduction-freedos][15]
|
||||
[18]: https://github.com/译者ID
|
||||
[19]: https://github.com/校对者ID
|
||||
[20]: https://github.com/LCTT/TranslateProject
|
||||
[21]: https://linux.cn/
|
||||
[21]: https://linux.cn/
|
@ -143,4 +143,4 @@ via: [https://opensource.com/article/18/4/gnu-core-utilities][17]
|
||||
[20]: https://github.com/译者ID
|
||||
[21]: https://github.com/校对者ID
|
||||
[22]: https://github.com/LCTT/TranslateProject
|
||||
[23]: https://linux.cn/
|
||||
[23]: https://linux.cn/
|
@ -485,4 +485,4 @@ via: [https://opensource.com/article/18/4/metrics-monitoring-and-python][47]
|
||||
[50]: https://github.com/译者ID
|
||||
[51]: https://github.com/校对者ID
|
||||
[52]: https://github.com/LCTT/TranslateProject
|
||||
[53]: https://linux.cn/
|
||||
[53]: https://linux.cn/
|
@ -0,0 +1,136 @@
|
||||
另一个 TUI 图形活动监视器,使用 Go 编写
|
||||
======
|
||||
|
||||

|
||||
你已经知道 “top” 命令,对么?是的,它提供类 Unix 操作系统中运行中的进程的动态实时信息。一些开发人员为 top 命令构建了图形前端,因此用户可以在图形窗口中轻松找到他们系统的活动。其中之一是 **Gotop**。顾名思义,Gotop 是一个 TUI 图形活动监视器,使用 **Go** 语言编写。它是完全免费、开源的,受到 [gtop][1] 和 [vtop][2] 的启发。
|
||||
|
||||
在此简要的指南中,我们将讨论如何安装和使用 Gotop 来监视 Linux 系统的活动。
|
||||
|
||||
### 安装 Gotop
|
||||
|
||||
Gotop 是用 Go 编写的,所以我们需要先安装它。要在 Linux 中安装 Go 语言,请参阅以下指南。
|
||||
|
||||
安装 Go 之后,使用以下命令下载最新的 Gotop 二进制文件。
|
||||
```
|
||||
$ sh -c "$(curl https://raw.githubusercontent.com/cjbassi/gotop/master/download.sh)"
|
||||
|
||||
```
|
||||
|
||||
然后,将下载的二进制文件移动到您的 $PATH 中,例如 **/usr/local/bin/**。
|
||||
```
|
||||
$ cp gotop /usr/local/bin
|
||||
|
||||
```
|
||||
|
||||
最后,用下面的命令使其可执行:
|
||||
```
|
||||
$ chmod +x /usr/local/bin/gotop
|
||||
|
||||
```
|
||||
|
||||
如果你使用的是基于 Arch 的系统,Gotop 存在于 **AUR** 中,所以你可以使用任何 AUR 助手程序进行安装。
|
||||
|
||||
使用 [**Cower**][3]:
|
||||
```
|
||||
$ cower -S gotop
|
||||
|
||||
```
|
||||
|
||||
使用 [**Pacaur**][4]:
|
||||
```
|
||||
$ pacaur -S gotop
|
||||
|
||||
```
|
||||
|
||||
使用 [**Packer**][5]:
|
||||
```
|
||||
$ packer -S gotop
|
||||
|
||||
```
|
||||
|
||||
使用 [**Trizen**][6]:
|
||||
```
|
||||
$ trizen -S gotop
|
||||
|
||||
```
|
||||
|
||||
使用 [**Yay**][7]:
|
||||
```
|
||||
$ yay -S gotop
|
||||
|
||||
```
|
||||
|
||||
使用 [yaourt][8]:
|
||||
```
|
||||
$ yaourt -S gotop
|
||||
|
||||
```
|
||||
|
||||
### 用法
|
||||
|
||||
Gotop 的使用非常简单!你所要做的就是从终端运行以下命令。
|
||||
```
|
||||
$ gotop
|
||||
|
||||
```
|
||||
|
||||
这样就行了!你将在简单的 TUI 窗口中看到系统 CPU、磁盘、内存、网络、CPU温度和进程列表的使用情况。
|
||||
|
||||
![][10]
|
||||
|
||||
要仅显示CPU、内存和进程组件,请使用下面的 **-m** 标志
|
||||
```
|
||||
$ gotop -m
|
||||
|
||||
```
|
||||
|
||||
![][11]
|
||||
|
||||
你可以使用以下键盘快捷键对进程表进行排序。
|
||||
|
||||
* **c** – CPU
|
||||
* **m** – 内存
|
||||
* **p** – PID
|
||||
|
||||
|
||||
|
||||
对于进程浏览,请使用以下键。
|
||||
|
||||
* **上/下** 箭头或者 **j/k** 键用于上移下移。
|
||||
* **Ctrl-d** 和 **Ctrl-u** – 上移和下移半页。
|
||||
* **Ctrl-f** 和 **Ctrl-b** – 上移和下移整页。
|
||||
* **gg** 和 **G** – 跳转顶部和底部。
|
||||
|
||||
|
||||
|
||||
按下 **< TAB>** 切换进程分组。要杀死选定的进程或进程组,请输入 **dd**。要选择一个进程,只需点击它。要向下/向上滚动,请使用鼠标滚动按钮。要放大和缩小 CPU 和内存图,请使用 **h** 和 **l**。要显示帮助菜单,只需按 **?**。
|
||||
|
||||
**推荐阅读:**
|
||||
|
||||
就是这些了。希望这有帮助。还有更多好东西。敬请关注!
|
||||
|
||||
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://www.ostechnix.com/gotop-yet-another-tui-graphical-activity-monitor-written-in-go/
|
||||
|
||||
作者:[SK][a]
|
||||
译者:[geekpi](https://github.com/geekpi)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
选题:[lujun9972](https://github.com/lujun9972)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]:https://www.ostechnix.com/author/sk/
|
||||
[1]:https://github.com/aksakalli/gtop
|
||||
[2]:https://github.com/MrRio/vtop
|
||||
[3]:https://www.ostechnix.com/cower-simple-aur-helper-arch-linux/
|
||||
[4]:https://www.ostechnix.com/install-pacaur-arch-linux/
|
||||
[5]:https://www.ostechnix.com/install-packer-arch-linux-2/
|
||||
[6]:https://www.ostechnix.com/trizen-lightweight-aur-package-manager-arch-based-systems/
|
||||
[7]:https://www.ostechnix.com/yay-found-yet-another-reliable-aur-helper/
|
||||
[8]:https://www.ostechnix.com/install-yaourt-arch-linux/
|
||||
[9]:data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7
|
||||
[10]:http://www.ostechnix.com/wp-content/uploads/2018/04/Gotop-1.png
|
||||
[11]:http://www.ostechnix.com/wp-content/uploads/2018/04/Gotop-2.png
|
Loading…
Reference in New Issue
Block a user