转载:http://azer.bike/journal/10-linux-commands-every-developer-should-know/ As a software engineer, learning Linux was the best time investment I've made. Since it's a system that user has to understand and maintain, daily experience feels like adding…
Linux的命令总结 1. man:在线请求系统帮助 例:man mkdir NAME:这个命令的完整全名 mk(make directories) SYNOPSIS:这个命令的基本语法 mkdir [OPTION]... DIRECTORY... OPTION:参数 DERECTORY:目录或者行为 DESCRIPTION:具体描述命令的使用方法 -m, --mode=MODE set file mode (as in chmod), not a=rwx – umask 左边的-m为短参数,右…
abrt-cli --since ;查看abrt捕捉的异常 alias ;别名,alias rm='rm -i':使用“ \rm ” 使用原命令 alsamixer ;图形音量调节,q 增加左声道, w 同时增加,e 增加右声道,上下键同时增加减小音量, s 选择声卡 amixer ; amixer set Master % 调节音量:alsamixer是Linux 音频架构ALSA中的Alsa工具的其中一个,用于配置音频的各个参数, amixer 是他的文本模式 apachectl ; apa…
http://how-to.linuxcareer.com/learning-linux-commands-awk 1. Introduction In this case, the title might be a little misleading. And that is because awk is more than a command, it's a programming language in its own right. You can write awk scripts fo…
tar -zxvf list所有tar.gz文件,然后利用xargs将其作为参数传给tar命令.-n 1表示每次传一个参数. xargs: https://www.cnblogs.com/wangqiguo/p/6464234.html 阅读目录 为什么要用xargs,问题的来源 xargs是什么,与管道有什么不同 xargs的一些有用的选项 回到顶部 为什么要用xargs,问题的来源 在工作中经常会接触到xargs命令,特别是在别人写的脚本里面也经常会遇到,但是却很容易与管道搞混淆,本篇会详细…
linux一说都是搞开发玩的,敲敲键盘就能完成所有的工作.其实你也可以这么玩,玩游戏的除外哦. 那我们就来侃侃如何玩,linux是命令的天下,高级的命令那是相当的多,但是我们正真用到的也就那么几个看你是不是都知道,如果你都知道的话,说明你已经会玩了. 当然第一步是打开Terminal终端又了这个linux才会听你的话. ls ls 列出文件和目录 ls /home (列出home下面的所有文件和目录) ls -alh 列出当前所有文件包括隐藏文件及文件大小权限和时间,我一般都这么使用,它的使用太…
## Get Ubuntu Version Info lsb_release -a ## Get Linux kernal info uname -a ## Get Computer name echo $HOSTNAME ## Define Environment Variable ###  Defining Variables Globally Most Linux distributions tell you to change or add environment variable de…
  How to know CPU info      cat /proc/cpuinfo      arch   How to know memory info: cat /proc/meminfo or sudo dmidecode -t memory free   How to know Linux release info CentOS: vim /etc/redhat-release   How to check if Mysql running? sudo netstat -tap…
# best way to see log file less +F /var/log/syslog (equals: less /var/log/syslog, then shift+f) # see dmesg when it changes watch -n 0.1 "dmesg | tail -n 30" # use xargs with find find . -type x | xargs -I{} --no-run-if-empty file {}…
touch <filename>.sh gedit <filename>.sh bash <filename>.sh & ps auxw|grep <command>…
$((expression)) echo $(2+2) :wrong echo $((2+2))  : right echo Front-{A,B,C}-Back Front-A-Back Front-B-Back Front-C-Back echo start{1..5}end start1end start2end start3end start4end start5end echo start{A..Z}end $(cmd) 命令替换 一个命令的输出作为另一个命令的参数 uses back…
source: http://linoxide.com/linux-command/linux-commands-cheat-sheet/…
vim /data/yst.txt   打开一个文件之后,然后在命令行模式下,输入:help 可以调出 vim 的帮助文档. 然后会进入: 然后就可以查阅具体的帮助文档了,再也不用再网上找一些零散的vim编辑器的使用介绍了..累…
https://searchdatacenter.techtarget.com/tutorial/77-Linux-commands-and-utilities-youll-actually-use…
1. 统计当前文件夹下文件个数(不包括子目录下文件): $ ls -l | grep "^-" | wc -l 2. 统计当前文件夹下文件个数(包括子目录下文件): $ ls -lR| grep "^-" | wc -l 3. 查看某目录下文件夹(目录)的个数(包括子目录): $ ls -lR | grep "^d" | wc -l 4. 查看特定用户提交的命令及PID等数据,并使用kill杀线程: $ ps -U usrname -u usrn…
1. ls 命令:to show all of the major directiories filed under a given file system. for example: ls /applications--it will show the user all of the folders stored in the overall applications folder. The ls command is used for viewing files, folders and d…
This Linux tutorial will explain the three "W" commands. The three "W"s are whatis, whereis and which commands. You already know how to use find command to efficiently fo find a file. Now, these three W commands will help you to locate…
FROM: http://www.tecmint.com/18-tar-command-examples-in-linux/ 18 Tar Command Examples in Linux By Ravi Saive Under: CentOS, Fedora, Linux Commands, Linux Distros, RedHat On: September 15, 2012 The Linux “tar” stands for tape archive, which is used b…
In this article, let us review the Linux filesystem structures and understand the meaning of individual high-level directories. 1. / – Root Every single file and directory starts from the root directory. Only root user has write privilege under this…
 http://man.linuxde.net/grep ---------------------------------------------------- 如何使用Unix/Linux grep命令——磨刀不误砍柴工系列 标签: 正则表达式commandlinuxshellunix 2012-07-11 18:40 7550人阅读 评论(0) 收藏 举报  分类: linux/Ubuntu(6)  版权声明:本文为博主(微博@Gary的影响力)原创文章,未经博主允许不得转载.博客地址:h…
常用Linux/Unix/Mac OS命令 参考: 1.50 Most Frequently Used UNIX / Linux Commands (With Examples)…
Regular expressions are used to search and manipulate the text, based on the patterns. Most of the Linux commands and programming languages use regular expression. Grep command is used to search for a specific string in a file. Please refer our earli…
How to mount remote Windows shares Contents Required packages Basic method Better Method Even-better method Yet Another Even-better method OK, we live in the wonderful world of Linux. BUT, for many of us, having to deal with Windows is a fact of life…
1. / – Root Every single file and directory starts from the root directory. Only root user has write privilege under this directory. Please note that /root is root user’s home directory, which is not same as /. 2. /bin – User Binaries Contains binary…
转载:http://www.yolinux.com/TUTORIALS/LibraryArchives-StaticAndDynamic.html Why libraries are used: This methodology, also known as "shared components" or "archive libraries", groups together multiple compiled object code files into a si…
15 Practical Examples of ‘echo’ command in Linux By Avishek Kumar Under: Linux Commands On: August 21, 2014       翻译 by SmallLiu echo命令是linux中的bash shell和C shell最常用的内建命令,最典型的是在脚本和批处理文件中的使用.其作用是在标准输出或者文件中显示一行文本. echo command examples echo命令的语法形式如下: ec…
Welcome to Linux world! Introduction and Basic commands--Part one J.C 2018.3.11 Chapter 1 What Is Linux? Linux is a Unix-like open source operating system. At the core of the operating system is the Linux kernel. It acts as the intermediary between t…
转自: http://www.tecmint.com/35-practical-examples-of-linux-find-command/ 35 Practical Examples of Linux Find Command Part I: Basic Find Commands for Finding Files with Names Part II: Find Files Based on their Permissions Part III: Search Files Based O…
The dd command stands for "data duplicator" and used for copying and converting data. It is very powerful low level utility of Linux which can do much more like; Backup and restore the entire hard disk or partition. Backup of MBR (Master Boot Re…
By Ravi Saive Under: Linux Commands, Monitoring Tools On: December 26, 2013 http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/ It’s really very tough job for every System or Network administrator to monitor and debugLinux System…