Tag Archives: linux

linux cp命令参数及用法详解—linux 复制文件命令cp

cp (复制档案或目录) # cp 来源档(source) 目的檔(destination) # cp source1 source2 source3 …. directory 参数: -a :相当于 -pdr 的意思; -d :若来源文件为连结文件的属性(link... Read More | Share it now!

Linux用户管理命令(useradd、adduser)

Linux用户管理命令(useradd、adduser)的用法。 在linux操作系统中,对用户的管理,可以使用二个命令,它们分别是useradd和adduser。 说明,useradd和adduser都能添加用户,区别是: 1.adduser会提示设置密码,而useradd不会。 2.adduser会创建用户目录,比如/home/freebird ... Read More | Share it now!

在VIM中输入特殊字符

通常情况下,VIM被用来编辑程序或者文本文件,但是有时候可能需要在文本中输入特殊字符,那该怎么办呢。VIM的处理和VI是一脉相承的。下面我们举例说明: 1、首先在命令行上启动VIM,并假设要编辑的文件名为test.txt #vim... Read More | Share it now!

klist

klist SYNOPSIS klist ]] ] DESCRIPTION klist lists the Kerberos principal and Kerberos tickets held in a credentials cache, or the keys held in a keytab file. OPTIONS -e Displays the encryption types of the session key and the ticket for... Read More | Share it now!

find, grep-linux中强大且常用命令

在linux下面工作,有些命令能够大大提高效率。本文就向大家介绍find、grep命令,他哥俩可以算是必会的linux命令,我几乎每天都要用到他们。本文结构如下: find命令 find命令的一般形式 find命令的常用选项及实例 find与xargs grep命令 grep命令的一般形式 grep正则表达式元字符集(基本集) grep命令的常用选项及实例 1、find命令 find命令是一个无处不在命令,是linux中最有用的命令之一。find命令用于:在一个目录(及子目录)中搜索文件,你可以指定一些匹配条件,如按文件名、文件类型、用户甚至是时间戳查找文件。下面就通过实例来体验下find命令的强大。 1.1、find命令的一般形式 man文档中给出的find命令的一般形式为: find... Read More | Share it now!

请输入关键词 搜索 Shell中的for循环总结

关于shell中的for循环用法很多,一直想总结一下,今天网上看到上一篇关于for循环用法的总结,感觉很全面,所以就转过来研究研究,嘿嘿… for((i=1;i<=10;i++));do echo $(expr $i \*... Read More | Share it now!

Install MapR 4.0.2 (or other version before 4.2)

Change to the root user or use sudo. Create a text file called maprtech.repo in the /etc/yum.repos.d/ directory with the following content, replacing v4.0.2 with the version of MapR that you want to install: name=MapR... Read More | Share it now!

scp 命令

================== scp 命令 ================== scp 可以在 2个 linux 主机间复制文件; 命令基本格式: scp file_source file_target ====== 从 本地 复制到 远程 ====== * 复制文件: * 命令格式: scp local_file... Read More | Share it now!

Linux date命令的用法

在linux shell编程中,经常用到日期的加减运算 以前都是自己通过expr函数计算,很麻烦 其实date命令本身提供了日期的加减运算 非常方便。例如:得到昨天的时间 date +%Y%m%d –date=”-1... Read More | Share it now!