Sorry, your browser cannot access this site
This page requires browser support (enable) JavaScript
Learn more >

linux下 修改文件编码方式从utf-8到ansi iconv -f utf8 -t gbk -o ansi.txt utf8.txt -f: from -t: to 查看文件编码方式 file <filename> # cp @ cp in ~/cp_lab/src/lexer [10:38:09] $ file lexical_analyzer_utf8.l ...
tool

stat file display file or file system status $ stat answer1 File: answer1 Size: 82 Blocks: 8 IO Block: 4096 regular file Device: 805h/2053d Inode: 1634042 Links: 1 Acces...

概述软硬极限极限分为软性和硬性。 The hard limit is the maximum value that is allowed for the soft limit. Any changes to the hard limit require root access. The soft limit is the value that Linux uses to limit the...

管理jobs要启动一个进程到后台,追加一个“&”到命令后面 kill 发信号kill -STOP [pid] 发送SIGSTOP (17,19,23)停止一个进程,而并不消灭这个进程。 kill -CONT [pid] 发送SIGCONT (19,18,25)重新开始一个停止的进程。 kill -KILL [pid] 发送SIGKILL (9)强迫进程立即停止,并且不实施清理操作。 ...

pmap(对于每个进程)pmap 命令可以查看进程的内存映像信息,其输出内容来自于/proc/<pid>/maps和/proc/<pid>/smaps这两个文件,maps文件包含了每一段内存的大概描述,smaps里包含了具体每段的详细信息 pmap [options] pid 参数 Options 功能 -x, –extended 显示扩展格式 -d,...

iostat(对于每个设备)显示所有设备负载情况 iostat [选项] [<指定设备名>] [<时间间隔>] [<次数>] 参数 -c: 显示CPU使用情况 -d: 显示磁盘使用情况 -N: 显示磁盘阵列(LVM) 信息 -n: 显示NFS 使用情况 -t: 报告每秒向终端读取和写入的字符数和CPU的信息 -p: [磁盘] 显示磁盘和分区的情况 -k...

pidstat(对于每个进程)Linux 运行进程实时监控pidstat命令详解 pidstat主要用于监控全部或指定进程占用系统资源的情况,如CPU,内存、设备IO、任务切换、线程等。 pidstat首次运行时显示自系统启动开始的各项统计信息,之后运行pidstat将显示自上次运行该命令以后的统计信息。用户可以通过指定统计的次数和时间来获得所需的统计信息。 pidstat [ 选项 ] [...

[转载] Linux进程状态解析之R、S、D、T、Z、X-阿里云开发者社区 (aliyun.com) stat字段比如R+ R (TASK_RUNNING),可执行状态只有在该状态的进程才可能在CPU上运行。而同一时刻可能有多个进程处于可执行状态,这些进程的task_struct结构(进程控制块)被放入对应CPU的可执行队列中(一个进程最多只能出现在一个CPU的可执行队列中)。进程调度器的任...

ANSI转义序列 - 维基百科,自由的百科全书 (wikipedia.org) Build your own Command Line with ANSI escape codes (lihaoyi.com) Red: \u001b[31m Reset: \u001b[0m This \u001b character is the special character that sta...
tool

-luse a long listing format missing:~$ ls -l /home drwxr-xr-x 1 missing users 4096 Jun 15 2019 missing First, the d at the beginning of the line tells us that missing is a directory. Then follow...