Yandex Big Data Essentials Week1 Unix Command Line Interface Processes managing
free
displays the total amount of free and used memory
free [options]
top
provides a dynamic real-time view of a running system
top [options]
ps
provides snapshot of the status of currently running processes
ps [options]
kill
sends a signal to a process
kill [-s][-l] %pid
nice
runs a command with a modified scheduling priority
nice [OPTION] [COMMAND [ARG] …]
课程总结:
| Command | Description |
|---|---|
| awk | interpreted programming language text processing |
| awk -F | set the separator |
| cat | Display the contents of a file at the command line,is also used to copy and or append text files into a document. Named after it’s function to con-cate-nate files. |
| cd | Change the current working directory.Also known as chdir |
| cd / | Change the current directory to root directory |
| cd .. | Change the current directory to parent directory |
| cd ~ | Change the current directory to your home directory |
| cp | Make copies of files and directories |
| cp -r | Copy directories recursively |
| cut | Drop sections of each line fo iniput by bytes,characters, or fields,separated by a delimiter (the tab character by default) |
| cut -d -f | -d is for delimiter instead of tab character,-f select only those fields(ex.: ” cut -d “,” -f1 multilined_file.txt” -will mean that we select only the first field from each comma-separated line in the file |
| du | Estimate (and display) the file space usage -space used under a particular directory or file on a file system |
| df | Display the amount of available disk space being used by file systems. |
| df -h | use human readable format |
| free | Display the total amount of free and used memory(use vm_stat instead on MacOS). |
| free -m | Display the amount of memory in megabytes |
| feee -g | Display the amount of memory in gigabytes |
| grep | Process text and print any lines which match a regular expression(“global regular expression print”) |
| head | Print the beginning of a text file or piped data.By default,outputs the first 10 lines of its input to the commannd line |
| head -n | Output the first n lines of input data(ex: “head -5 multilined_file.txt”) |
| kill | Send a signal to kill a process. The default signal for kill is TERM(which will terminate the process) |
| less | is similar to more,but has extended capability of allowing both forward and backward navigation through the file |
| ls | List the content of a directory |
| ls -l | List the contents of a directory + use a long format,displaying Unix file types,permissions,number of hard links, owner,group,size,last-modified data and filename. |
| ls -lh | List the contents of a directory + print sizes in human readable format.(eg. 1k,234M,2G,etc) |
| ls -lS | Sort by file size |
| man | Display the man pages with provide documentation about commands,system calls,library routines and the kernel |
| mkdir | Create a directory on a file system. |
| more | Display the contents of a text file one screen at a time |
| mv | Rename files or directories or move them to a different directory |
| nice | Run a command with a modified scheduling priority. |
| ps | Provide information about the currently running process,including their process identification numbers (PIDS)(“process status”) |
| ps a | select all processes except both session leader and processes not associated with terminal. |
| pwd | Abbreviated from “print working directory”,pwd writes the full pathname of the current working directory. |
| rm | Remove files or directory |
| rm -r | Remove directories and their contents recursively. |
| sort | Sort the contents of a text file. |
| sort -r | Sort the output in the reverse order. Reverse means - to reverse the result of comparsions |
| sort -k | -k or –key=POS1[,POS2] Start a key at POS1 (origin 1), end it at POS2 (default end of the line) (ex.: “sort -k2,2 multilined_file.txt”). |
| sort -n | Compare according to string numerical value. |
| tail | Print the tail end of a text file or piped data. Be default, outputs the last 10 lines of its input to the command line. |
| tail -n | Output the last n lines of input data (ex.: “tail -2 multilined_file.txt”). |
| top | Produce an ordered list of running processes selected by user-specified criteria, and updates it periodically. |
| touch | Update the access date and or modification date of a file or directory or create an empty file. |
| tr | Replace or remove specific characters in its input data set (“translate”). |
| tr -d | Delete characters, do not translate. |
| vim | Is a text editor (“vi improved”). It can be used for editing any kind of text and is especially suited for editing computer programs. |
| wc | Print a count of lines, words and bytes for each input file (“word count”) |
| wc -c | Print only the number of characters. |
| wc -l | Print only the number of lines. |
Yandex Big Data Essentials Week1 Unix Command Line Interface Processes managing的更多相关文章
- Yandex Big Data Essentials Week1 Unix Command Line Interface File Content exploration
cat displays the contents of a file at the command line copies or apppend text file into a document ...
- Yandex Big Data Essentials Week1 Unix Command Line Interface File System exploration
File System Function In computing, a file system or filesystem is used to control how data is stored ...
- Yandex Big Data Essentials Week1 Scaling Distributed File System
GFS Key Components components failures are a norm even space utilisation write-once-read-many GFS an ...
- Data Science at the Command Line学习笔记(一)
学习Data Science at the Command Line时,win7下安装环境是遇到了一些小问题,最后通过百度解决. 官方指导可以在这个地址找到:http://datascienceatt ...
- atprogram.exe : Atmel Studio Command Line Interface
C:\Program Files\Atmel\Atmel Studio 6.1\atbackend\atprogram.exe No command specified.Atmel Studio Co ...
- Centos下_MysqL5.7在使用mysqldump命令备份数据库报错:mysqldump: [Warning] Using a password on the command line interface can be insecure.
在阿里云服务器增加一个shell脚本定时备份数据库脚本执行任务时,测试性的执行了备份命令,如下 [root@iZ2ze503xw2q1fftv5rhboZ mysql_bak]# /usr/local ...
- Warning: Using a password on the command line interface can be insecure.
[root@qttc ~]# /usr/local/mysql/bin/mysqldump -uroot -proot db > bak.sqlWarning: Using a passwor ...
- vue-cli 脚手架 Command Line Interface
mac sudo npm install -g nrm sudo npm config -g set unsafe-perm sudo npm install webpack@3.0.0 -g sud ...
- Install the AWS Command Line Interface on Linux
Install the AWS Command Line Interface on Linux You can install the AWS Command Line Interface and i ...
随机推荐
- 【记】本地远程连接VM VirtualBox中虚拟机Centos6的数据库MySQL
目标:远程连接虚拟机中的MySQL 效果图如下 1. VBox设置好端口转发 具体步骤请看 VM VirtualBox 网络地址转换(NAT)使用详解 2. MySQL授权 如果这时我们就去远程连接M ...
- C语言编译成dll
首先c语言在开始要加上 #ifdef __cplusplus extern "C" { #endif …被导出的方法名称 #ifdef __cplusplus } #endif 不 ...
- 使用 OAS(OpenAPI标准)来描述 Web API
无论哪种类型的Web API, 都可能需要给其他开发者使用. 所以API的开发者体验是很重要的. API的开发者体验, 简写为 API DX (Developer Experience). 它包含很多 ...
- Activiti 启动事件(Start Event)
Activiti 启动事件(Start Event) 作者:Jesai 生活里,没有容易二字,忧伤是一种本能,而微笑是一种能力 版权所有,未经允许,禁止引用.如需引用,请注明出处. 前言: 启动事件是 ...
- (树形DP)Strategic game POJ - 1463
题意: 给你一棵树,树的每一个节点可以守护与其相连的所有边,问你最少用多少个节点可以守护这整棵树 思路: 仔细思考不难发现,要想守护一条边,边的两个端点必须有一个可以被选(两个都选也可以),然后这个问 ...
- [bzoj3529] [洛谷P3312] [Sdoi2014] 数表
Description 有一张n×m的数表,其第i行第j列(1 < =i < =n,1 < =j < =m)的数值为 能同时整除i和j的所有自然数之和.给定a,计算数表中不大于 ...
- 个人任务day6
今日计划: 学会将网页放到公用网络上,并生成快捷方式. 昨日成果:完成登录页面.
- spring.net 基础 1
Spring.NET是一个应用程序框架,其目的是协助开发人员创建企业级的.NET应用程序 1: 在2004年初,Martin Fowler曾经问他网站的读者:当我们谈到控制反转时,"问题是, ...
- c#数字图像处理(六)直方图均衡化
直方图均衡化又称直方图修平,是一种很重要的非线性点运算.使用该方法可以加强图像的局部对比度,尤其是当图像的有用数据的对比度相当接近的时候.通过这种方法,亮度可以更好的在直方图上分布. 直方图均衡化的基 ...
- kivy file import
from kivy.app import Appfrom kivy.uix.boxlayout import BoxLayoutfrom kivy.properties import ObjectPr ...