linux basis --- common commands】的更多相关文章

switch to root : sudo su switch to users : su god(user name) set root password : sudo passwd root check out kernel version : uname -r generate 'config.gz' file(the compressed package of '.config') : modprobe configs exit current thread: ctrl+c check…
Linux 常用命令 (Common Commands For Linux) 1.声明,此文章仅写基于 Bash shell 常用的命令,如果遇上命令在使用过程中提示没有,可能随着更新,命令也被替换掉了,请去官方 WIKI 查找或通过 MAN 手册查看. 2.根据实际情况高效地组合各种命令选择和命令参数: 命令名称 [命令参数] [命令对象] 注意,命令名称 · 命令参数 · 命令对象之间请用空格键分隔.命令对象一般是指要处理的目标(普通文件/目录文件/用户等),命令参数可使用长格式或短格式,分…
EDIT mode to GENERAL mode: press ESC general mode: CLOSE FILE :q!    :force to close the file but not save :wq! :force to save and close the file :q    : close the file but not save :wq  : save and close the file ENTER EDIT MODE i :insert a charactor…
switch to root : sudo su.su root.sudo -s switch to users : su god(user name) set root password : sudo passwd root check out kernel version : uname -r generate 'config.gz' file(the compressed package of '.config') : modprobe configs check the current…
[root@bigdata-server-02 /]# ps --help all Usage: ps [options] Basic options: -A, -e all processes -a all with tty, except session leaders a all with tty, including other users -d all except session leaders -N, --deselect negate selection r only runni…
ref:Linux / Unix Command: ls NAME ls - list directory contents SYNOPSIS ls [OPTION]... [FILE]... DESCRIPTION List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuSUX nor --sort. Mandatory ar…
linux 内存清理/释放命令 You could find reference from here: http://jingyan.baidu.com/article/597a06436a687f312b5243f3.html Basically it looks like this: ---------------------------------- 清理前内存使用情况 free –m 或者 free 清理内存 > /proc/sys/vm/drop_caches 清理后内存使用情况 fr…
命令的语法通用格式: ------------------------------------------------ #COMMAND OPTIONS ARGUMENTS 发起命令:请求内核将某个二进制程序运行为一个进程: 程序 --> 进程 静态 --> 动态(有生命周期) 命令本身是一个可执行的程序文件:二进制格式的文件,有可能会调用共享库文件: 多数系统程序文件都存放在:/bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/loc…
-c: compress archives -x:decompress archives -t:check archives -z:whether it has the attribute of gzip at the same time?in other words,whether it needs gzip to compress or decompress. The general format is xx.tar.gz or xx. tgz -j:whether it has the a…
比较已经排序的文件 comm [options] file1 file2 comm将逐行比较已经排序的两个文件.显示结果包括3列: 第1列为只在file1中找到的行;第2列为只在file2中找到的行;第3列为两个文件的公用行. 参数 参数file1和file2为comm要比较的文件的路径名.用连字符(-)来替代file1或者file2时,comm将从标准输入读取输入信息 选项 -1              不显示第1列(即不显示只在file1中找到的行) -2              不显示…
1. 简介 1.1. 最近看到阿里的运维招聘需要熟练掌握以下的命令,我就针对这几个命令做一下总结,有些命令我觉得别人总结的挺好了,我就不赘述了 1.2. 还有一些其他我觉得用得到的命令的用法会在第三部分补充 2. 命令 2.1. tcpdump https://www.cnblogs.com/ggjucheng/archive/2012/01/14/2322659.html 2.2. strace 维基百科:https://en.wikipedia.org/wiki/Strace     htt…
文件管理工具:cp, mv, rm cp命令:copy 源文件:目标文件 单源复制:cp [OPTION]... [-T] SOURCE DEST 多源复制:cp [OPTION]... SOURCE... DIRECTORY cp [OPTION]... -t DIRECTORY SOURCE... 单源复制:cp [OPTION]... [-T] SOURCE DEST 如果DEST不存在:则实现创建此文件,并复制源文件的数据流至DSST中: 如果DEST存在: 如果DEST是非目录文件:则…
分屏查看命令:more和less more命令: more FILE 特点:翻屏至文件尾部后自动退出: less命令: less FILE head命令: 查看文件的前n行: head [option] FILE -n # -# tail命令: 查看文件的后n行: tail [option] FILE -n # -# -f:查看文件尾部内容后不退出,跟随显示新增的行 stat命令: stat - display file or file system status stat [OPTION]..…
1. 系统启动流程:POST --> Boot Sequeue(BIOS) --> Bootloader(MBR) --> Kernel(ramdisk) --> rootfs --> /sbin/init         init:             CentOS 5: SysV init             CentOS 6:Upstart             CentOS 7:Systemd               2. Systemd的新特性: 系统…
Memory Usage On linux, there are commands for almost everything, because the gui might not be always available. When working on servers only shell access is available and everything has to be done from these commands. So today we shall be checking th…
Step-by-step tutorial of how to download and install Terraform on Windows, Linux and Mac OS. Terraform is distributed as a binary package for all supported platforms and architectures and must first be installed on your machine. Check out the release…
转自http://get.jobdeer.com/493.get 1. tar command examples Create a new tar archive. $ tar cvf archive_name.tar dirname/ Extract from an existing tar archive. $ tar xvf archive_name.tar View an existing tar archive. $ tar tvf archive_name.tar More tar…
##Some common modules[cloud modules] [clustering modules] [command modules]command - executes a command on a remote nodeexpect - executes a command and responds to promptsraw -- executes a low-down and dirty SSH commandshell - executes commands in no…
Apparatus and methods are provided for utilizing a plurality of processing units. A method comprises selecting a pending job from a plurality of unassigned jobs based on a plurality of assigned jobs for the plurality of processing units and assigning…
Install Kali Linux : https://www.kali.org/ Common Commands: pwd man ls ls -la cd mkdir rmdir cp mv locate adduser su sudo echo cat nano chmod chmod 777 username ifconfig ping Starting and Stopping Services: HTTP /var/www/html apache2 SSH netstat -ant…
FTP 是File Transfer Protocol(文件传输协议)的英文简称,而中文简称为“文传协议”.用于Internet上的控制文件的双向传输.同时,它也是一个应用程序(Application).基于不同的操作系统有不同的FTP应用程序,而所有这些应用程序都遵守同一种协议以传输文件.在FTP的使用当中,用户经常遇到两个概念:"下载"(Download)和"上传"(Upload)."下载"文件就是从远程主机拷贝文件至自己的计算机上:&quo…
*以下内容均来自于网络转载,感谢原作者分享 <对Linux新手非常有用的20个命令> 传送门 英文原文为“Switching From Windows to Nix or a Newbie to Linux – 20 Useful Commands for Linux Newbies”. tar命令详解 -c: 建立压缩档案 -x:解压 -t:查看内容 -r:向压缩归档文件末尾追加文件 -u:更新原压缩包中的文件 这五个是独立的命令,压缩解压都要用到其中一个,可以和别的命令连用但只能用其中一个…
the Shell Profile: When a new interactive shell is started, /etc/profile, followed by /etc/bash.bashrc(if a bash shell), ~/.profile, and finally ~/.bashrc are executed in that order. PATH You can set your PATHenvironment variable to tell the shell wh…
本原创文章属于<Linux大棚>博客. 博客地址为http://roclinux.cn. 文章作者为roc. == 原文:16 Linux Server Monitoring Commands You Really Need To Know 为了让大家能更直观的学习这些命令,添加了更多的解释内容.实例和外部链接. == 在使用Linux服务器的过程中,有16个命令可以帮助你全面了解你的服务器的运行状况.如果你能够很熟练地掌握这些命令,就离成为一名专业的Linux系统管理员不远啦! 在不同的Li…
转载至:http://gywbd.github.io/posts/2014/8/50-linux-commands.html tar grep find ssh sed awk vim diff sort export args ls pwd cd gzip bzip2 unzip shutdown ftp crontab service ps free top df kill rm cp mv cat mount chmod chown passwd mkdir ifconfig uname…
linux 命令大全 每个开发者应该了解的 10 个 Linux 命令 1.查看正在执行的进程(Process) ps命令 Process Status 进程状态 语法: ps  [option]  [--help] -A  列出所有的行程 -w  显示加宽可以显示较多的资讯 -au 显示较详细的资讯 -aux  显示所有包含其他使用者的行程 au(x)  输出格式 : USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND 名词解释: US…
50个最常用的Unix/Linux命令 2014-08-20 这篇文章翻译自http://www.thegeekstuff.com/2010/11/50-linux-commands/这些都是一些很常用的命令,这篇文章中每个命令都有一些简单的示例说明它的用法,对于想学习Unix/Linux的人,这些命令基本上都是需要掌握的: tar grep find ssh sed awk vim diff sort export args ls pwd cd gzip bzip2 unzip shutdow…
使用Runtime.exec()运行windwos dos或linux shell命令,按实际情况具体测试     实例代码: package com.bookoo.test.command; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWr…
转自:https://zhuanlan.zhihu.com/p/28674639?hmsr=toutiao.io&utm_medium=toutiao.io&utm_source=toutiao.io 写代码怎能不会这些Linux命令? 王爵nice 3 天前 这篇文章翻译自http://www.thegeekstuff.com/2010/11/50-linux-commands/这些都是一些很常用的命令,这篇文章中每个命令都有一些简单的示例说明它的用法,对于想学习Unix/Linux的人…
  Common commands:   describe keyspaces // 列出所有db use your_db; // 进去db describe tables; // 列出所有tables describe table table_name; //查看表结构:…