unix 命令_linux,unix常用基本命令

时间:2024-07-30 13:00:32编辑:莆田seo君

操作系统:UNIX/LINUX常用命令。

显示当前目录的命令 ls, 复制文件或文件夹命令 cp, 移动文件文件或文件夹命令 mv, 查看文件的内容 cat, 改变当前目录的命令 cd。 这些是最常用的,如果楼主,刚接触Linux的话,用到具体某个操作的命令,可以上网搜一下,肯定可以找到的。对了,如果想看这些命令的具体使用方式 可以使用 man来查看帮助手册的。例如: man cd,就会列出cd 命令的具体使用方法还有参数什么的。

Linux和Unix操作系统中常用的命令是什么?

管理员必须天天用的命令 dmesg 或 errpt df -m top 或 topas

linux,unix常用基本命令

1、cd命令 这是一个非常基本,也是大家经常需要使用的命令,它用于切换当前目录,它的参数是要切换到的目录的路径,可以是绝对路径,也可以是相对路径。 2、ls命令 这是一个非常有用的查看文件与目录的命令。 3、grep命令 该命令常用于分析一行的信息,若当中有我们所需要的信息,就将该行显示出来,该命令通常与管道命令一起使用,用于对一些命令的输出进行筛选加工等等。 4、find命令 find是一个基于查找的功能非常强大的命令,相对而言,它的使用也相对较为复杂,参数也比较多。 5、cp命令 该命令用于复制文件,copy之意,它还可以把多个文件一次性地复制到一个目录下。 6、mv命令 该命令用于移动文件、目录或更名,move之意。 7、rm命令 该命令用于删除文件或目录,remove之意。 8、ps命令 该命令用于将某个时间点的进程运行情况选取下来并输出,process之意。 9、kill命令 该命令用于向某个工作(%jobnumber)或者是某个PID(数字)传送一个信号,它通常与ps和jobs命令一起使用。 10、tar命令 该命令用于对文件进行打包,默认情况并不会压缩,如果指定了相应的参数,它还会调用相应的压缩程序(如gzip和bzip等)进行压缩和解压。 11、cat命令 该命令用于查看文本文件的内容,后接要查看的文件名,通常可用管道与more和less一起使用,从而可以一页页地查看数据。 12、chmod命令 该命令用于改变文件的权限。 13、vim命令 该命令主要用于文本编辑,它接一个或多个文件名作为参数,如果文件存在就打开,如果文件不存在就以该文件名创建一个文件。vim是一个非常好用的文本编辑器,它里面有很多非常好用的命令。

常用的Unix/Linux命令有哪些!最精简的最好在10个左右。

cd mkdir touch mv cp cat rm top ps kill

UNIX系统怎么用,常用的命令有哪些

查看文章 UNIX/Linux 常用命令参考2009-11-12 13:00findall the files under /etc directory with mail in the filename. # find /etc -name "*mail*" all the files in the system greater than 100MB. # find / -type f -size +100M all the files that were modified more than 60 days ago under the current directory. # find . -mtime +60 delete all the archive files with extension *.tar.gz and greater than 100M # find / -type f -name *.tar.gz -size +100M -exec rm -f {} \; archive all the files that are not modified in the last 60 days # find /home/jsmith -type f -mtime +60 | xargs tar -cvf /tmp/`date '+%d%m%Y'_archive.tar` xargs# find ~ -name ‘*.log’ -print0 | xargs -0 rm -f If you have a file with list of URLs that you would like to download, you can use xargs as shown below. # cat url-list.txt | xargs wget –cdate格式化$ date Thu Jan 1 08:19:23 PST 2009 $ date +"%d-%m-%Y" 01-01-2009 $ date +"%d/%m/%Y" 01/01/2009 # date -s 07/20/2009 # date -s 09:20:00 crontab设置计划任务cronjobcrontab -l 查看 crontab -e 编辑 grep (-i ignore case)# grep -i john /etc/passwd jsmith:x:1082:1082:John Smith:/home/jsmith:/bin/bash jdoe:x:1083:1083:John Doe:/home/jdoe:/bin/bash cutDisplay 1st and 3rd field from a colon delimited file $ cut -d: -f 1,3 names.txt Emma Thomas:Marketing Alex Jason:Sales Display only the first 8 characters of every line in a file $ cut -c 1-8 names.txt Emma Tho 系统服务管理# export LANG='en_US' # setup 进入system service 选项 # chkconfig --level 2345 vsftpd on 开机自动启动服务 # /sbin/service start # /etc/rc.d/init.d/ {start|stop|restart|condrestart|status}Change system booting level.Edit /etc/inittab file# vi /etc/inittab # Default runlevel. The runlevels used by RHS are: # 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this) # id:3:initdefault: <<----- edit this line 更改主机名第一步: #hostname oratest 第二步: 修改/etc/sysconfig/network中的hostname 第三步: 修改/etc/hosts文件Linux下使用命令行安装VMware Tools1. 选择VM->Install VMware Tools 2. 以root用户装载VMware Tools虚拟光驱镜像并安装  # mount /dev/cdrom /mnt  # rpm -Uvh /mnt/VMwareTools-3.5.0-64607.i386.rpm  # umount /mnt 3. 配置VMware Tools  # vmware-config-tools.pl

上一篇:dnf混沌魔灵刷图加点_DNF混沌魔灵贫民刷图加点!求大神

下一篇:什么牌子的足浴盆好_足浴盆什么牌子好