Category 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:CentOS install gradle

Ensure that this packages are installed: yum install bzip2 yum install unzip yum install wget Use this shell to install gradle. Copy this content in a file /tmp/gradle.sh cat > /tmp/gradle.sh #!/bin/bash # installs to /opt/gradle #... Read More | Share it now!

Fatal error compiling: invalid target release: 1.7

Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project api: Fatal error compiling: invalid target release: 1.7 -> 根据错误提示invalid target release:... 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!

Changing User Passwords

To change a password on behalf of a user, first sign on or “su” to the “root” account. Then type, “passwd user” (where user is the username for the password you are changing). The system will prompt you to enter a... 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!