[算法工程师之]Linux常用指令记录

  • Three ways to move to the home directory

    • cd (当然敲这个最省力)
    • cd ~
    • cd $HOME
  • Move to where you just came from

    • cd - (实用的指令)
  • Run something in background mode
    (When you run a command in the linux terminal, the command will take control of this terminal until it finishes executing.)

    • command & (Use & after the command, you can get the prompt back and use this terminal. But after you close this terminal, also these running jobs will be closed.)
    • nohup command & (Plus nohup, the running jobs will not be killed after you close the terminal)
    • Ctrl-Z (Stop the running process in the terminal)
    • bg %\$number (Put the $number-th job into background)
    • fg %\$number (Pull the $number-th job back to the foreground)
    • jobs -l (Check running jobs)
    • ps -ef | grep \$command (Check the process number of the $command)
    • kill \$number (Kill the $number-th process)
    • click here for more details
  • more 指令
    单页显示

  • 环境变量

    • printenv [name]
    • echo $[name]
    • export [name]=$PATH1:$PATH2
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值