项目作者: S-Sam-Sin

项目描述 :
My personal Linux Command-Line cheat sheet
高级语言: Shell
项目地址: git://github.com/S-Sam-Sin/cli-doc.git
创建时间: 2017-07-23T10:56:52Z
项目社区:https://github.com/S-Sam-Sin/cli-doc

开源协议:MIT License

下载


cli-doc.github.io

My personal Linux Command-Line / Bash cheat sheet.

Package Handling

All around installation.

Install applications from PPA (Personal Package Archive#Package_Archives)) :

alt text alt text

  1. sudo apt install <package>
  1. sudo aptitude install <package>

Install applications from repository (PIP) :

alt text alt text

1.Python 2x

  1. pip install <package>

2.Python 3x

  1. pip3 install <package>

Install applications from Debian package:

alt text alt text

1.chain method

  1. cd <directory url of debian package> && sudo dpkg -i ./<file name of debian package>.deb

2.direct method

  1. sudo dpkg -i ./<directory url of debian package>/<file name of debian package>.deb

Install failed :

alt text alt text

  1. sudo apt --purge autoremove <failed package> && sudo dpkg --configure -a && sudo apt update && sudo aptitude install <failed package>
Updating application.

Updating system :

alt text alt text

  1. sudo apt update && sudo apt upgrade && sudo apt --purge autoremove
  1. sudo aptitude update && sudo aptitude upgrade && sudo apt --purge autoremove

Troubleshoot updating:

alt text alt text

  1. sudo dpkg --configure -a
Uninstall application.

Remove applications :

alt text

1.standard.

  1. sudo apt remove <package>

2.removing config files & linked unused libraries.

  1. sudo apt --purge autoremove <package>

3.advanced uninstall with multiple situations.

  1. sudo aptitude remove <package>

Trick & Tips

Bypass spaces in names.

alt text alt text alt text

example to cd in a directory named My Directory.

  1. cd /home/Sayid/My\ Directory/

Become root:

alt text

  1. sudo su

Command-Line applications

Ranger - File Manager
alt text

  1. sudo apt install ranger

Glances - System Monitor
alt text

  1. sudo apt install glances

Deprecated Commands

Replaced by apt

alt text alt text

  1. apt-get