some commands' usage under ubuntu

本文介绍了一系列Linux常用命令,包括创建和管理后台作业、进程管理和软件安装等操作。适合初学者快速掌握并应用于日常工作中。

Jobs:

  [program name] &: create a job  -> eg: google-chrome & , this command will create chrome job; 

  jobs: list all the jobs;

  fg %n: stop a job, n is numeric which is the ID of the job, if follows Ctrl + C, which will kill the job, if follows Ctrl + Z, which will stop the job;

  bg %n: run a job, this command will running the stopped job;

  kill -9 $(jobs -p): kill all the jobs

 

Process:

  ps ux: list all the running processing; 

  pkill [ID,Name]: kill a processing using ID or Name of the program;

  kill [ID]: kill a processing using ID

 

Install:

  /*Note: if login name is not root, then before all the apt-get command must be adding sudo*/

  sudo apt-get install [program name]: installation an program;

  sudo apt-get remove [program name]: uninstall an program;

  sudo apt-get autoremove [program name]: unistall an program except the part  is being used by sys now;

  /*if out line install local program, then see the following command*/

  install an .deb file:

  sudo dpkg -i [file full name]  -> [file full name] like: /home/loginusername/Downloads/linuxqq.deb;

  install an .tar.gz file:

  actually .tar.gz is an general compressed file format under linux, just like .zip format in windows, so we must extract tarball(compressed file) first, using:

  tar xzf file.tar.gz

  install an .sh file:

    1.Go to the directory which has the file, using: cd [directory full path], eg: cd /home/username/Downloads/;

    2.Type './filename.sh' and hit enter, or you can type 'bash filename.sh';

 

 

  

  

转载于:https://www.cnblogs.com/canie/archive/2012/06/03/2532816.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值