Ubuntu常用命令

查询apt-get包是否安装

To check if packagename was installed, type:

dpkg -s <packagename> # 小写的s是status

dpkg -S <packagename> # 大写的S是Search

You can also use dpkg-query that has a neater output for your purpose, and accepts wild cards, too.

dpkg-query -l <packagename>

To find what package owns the command, try:

dpkg -S which <command>

For further details, see article Find out if package is installed in Linux and dpkg cheat sheet.

如果apt-get包没有安如何安装

sudo apt-get install $pkgs

如何在ubuntu上截图

方法/步骤

  • 按下PrintScreen 快捷键截取全屏。 …
  • 按下 Alt+PrintScreen 快捷键截取当前窗口。 …
  • 按下Shift+PrintScreen 快捷键截取任意矩形内容。鼠标拖放截取任意矩形的屏幕内容。 …
  • 按下Ctrl+PrintScreen 快捷键截取全屏到剪切板。
打印/导出
QR Code
QR Code ubuntu常用命令 (generated for current page)