linux中几个常用的安装命令 及文件操作命令

1,

rpm -q [name of app] query whether install or not already 

rpm -ivh [full name of app] show the process line 

rpm -e to uninstall the app

2,

yum

before install :

yum clean all clean old cache

yum makecache get cache from server 

 

yum install [package_name ]

yum remove  [package_name ]

 

yum list installed already installed app

yum list available can be installed from the resource 

 

if the output too much ,so can use 

yum list installed | less this a pipe command can page down and up

 

enter 'q' to break the pipe 

 

yum  check-update

yum  update 

 

3,ps aux to check the process statues

 

4,wget in unix-like systems ,can download files by url ,support https ,http ,ftp protocols.

 

5,check network available or not 

ip addr 

nslookup ip (the local and the destination ip )

netstat (bunches of net arguments)

curl -s https://ipinfo.io/ip (show the public ip of the netcard )

ifconfig

 

7, :wq [filename ] save and quit 

 

:wq ![filename ] quit and override a file (a new file )

 

:q! quit without save 

 

8,return back to the parent directory 

cd -

cd~ to /home/user (the real user )

pwd (which directory you are in )

cd /[directory which in the other dir ]

cd [directory in the dir ] or ./[directory in the dir ]

9, to delete a directory

rmdir [directory_name ] (when the directory is empty)

rm - r [directory_name ] (when the directory is not empty ) 

 

 

  • 7
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值