Linux
驾数者
这个作者很懒,什么都没留下…
展开
-
linux清空文件
三种方式: > $文件路径 echo "" > $文件路径 cat /dev/null > $文件路径 演示如下原创 2020-02-04 14:35:56 · 424 阅读 · 0 评论 -
linux 客户端ssh到root
1、设置root用户密码 执行命令passwd设置密码 2、apt-get install openssh-server 3、修改sshd_config文件,找到PermitRootLogin 配置项将原先的PermitRootLogin的prohibit-password 修改为yes vi /etc/ssh/sshd_config PermitRootLogin yes Permi...原创 2019-09-23 23:32:01 · 264 阅读 · 1 评论 -
Linux查看CPU和内存使用情况
原文地址:http://www.cnblogs.com/xd502djj/archive/2011/03/01/1968041.html 在系统维护的过程中,随时可能有需要查看 CPU 使用率,并根据相应信息分析系统状况的需要。在 CentOS 中,可以通过 top 命令来查看 CPU 使用状况。运行 top 命令后,CPU 使用状态会以全屏的方式显示,并且会处在对话的模式 -- 用基于转载 2016-09-18 14:42:10 · 723 阅读 · 0 评论 -
linux 下 /bin /sbin 的区别
/bin,/sbin,/usr/bin,/usr/sbin区别 / : this is root directory root 用户根目录 /bin : commands in this dir are all system installed user commands 系统的一些指令 /sbin: commands in this di转载 2016-09-18 11:43:04 · 530 阅读 · 0 评论 -
在Linux下查看环境变量
原文地址:http://soft.chinabyte.com/os/169/11412169.shtml 1. 显示环境变量HOME $ echo $HOME /home/redbooks 2. 设置一个新的环境变量hello $ export HELLO="Hello!" $ echo $HELLO Hello! 3转载 2016-09-18 11:34:48 · 500 阅读 · 0 评论 -
ubuntu 64位 安装 ia32-libs
原文地址:http://blog.csdn.net/hackerwin7/article/details/37878007 sudo apt-get install g++-multilib sudo apt-get install libncurses5:i386 sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386转载 2016-07-11 21:34:43 · 551 阅读 · 0 评论 -
SSH RSA host key for has changed and you have requeste
原文地址:http://www.cnblogs.com/dkblog/archive/2012/06/22/2558547.html @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @转载 2016-04-27 17:26:26 · 1110 阅读 · 0 评论 -
linux tail命令的使用方法详解
本文介绍Linux下tail命令的使用方法。 linux tail命令用途是依照要求将指定的文件的最后部分输出到标准设备,通常是终端,通俗讲来,就是把某个档案文件的最后几行显示到终端上,假设该档案有更新,tail会自己主动刷新,确保你看到最新的档案内容。 一、tail命令语法 tail [ -f ] [ -c Number | -n Number | -m Number | -b N转载 2016-04-04 21:04:25 · 344 阅读 · 0 评论