nnplfeederap81
restart apache
[sudo /usr/local/httpd/bin/apachectl restart]
or:
cd /usr/local/httpd//bin/httpd
sudo ./apachectl restart
查看进程
ps aux
查看磁盘空间
df -hl
查看内存 free
read file
vi + file name
显示当前目录的完整路径(如果是连接则显示连接路径)
pwd
显示当前目录的绝对路径
pwd -LP
Man
lp[tab][tab] - find all command which start with “lp”
man -f world - find all command which named “world”
man -k world - find all command which related to “world”
vi command
: w filename (输入 「w filename」将文章以指定的文件名filename保存)
: wq (输入「wq」,存盘并退出vi)
: q! (输入q!, 不存盘强制退出vi)
添加 sodo 权限
sudoedit /etc/sudoers
*在后台运行进程
在命令后加一个&
*暂停某个进程
ctrl + Z
*管理后台作业
jobs 查看后台job
bg [id] 让后台进程由stop 改为 running
fg [id] 把后台进程切换到前台
*递归显示目录结构
ls -R
*显示目录或链接信息
ls -ld
*创建空文件或更新文件时间
touch [filename]
*查看文件类型
file [filename]
restart apache
[sudo /usr/local/httpd/bin/apachectl restart]
or:
cd /usr/local/httpd//bin/httpd
sudo ./apachectl restart
查看进程
ps aux
查看磁盘空间
df -hl
查看内存 free
read file
vi + file name
显示当前目录的完整路径(如果是连接则显示连接路径)
pwd
显示当前目录的绝对路径
pwd -LP
Man
lp[tab][tab] - find all command which start with “lp”
man -f world - find all command which named “world”
man -k world - find all command which related to “world”
vi command
: w filename (输入 「w filename」将文章以指定的文件名filename保存)
: wq (输入「wq」,存盘并退出vi)
: q! (输入q!, 不存盘强制退出vi)
添加 sodo 权限
sudoedit /etc/sudoers
*在后台运行进程
在命令后加一个&
*暂停某个进程
ctrl + Z
*管理后台作业
jobs 查看后台job
bg [id] 让后台进程由stop 改为 running
fg [id] 把后台进程切换到前台
*递归显示目录结构
ls -R
*显示目录或链接信息
ls -ld
*创建空文件或更新文件时间
touch [filename]
*查看文件类型
file [filename]