Line User Interface (LUI) 101

All Linux distrobutions have subtle differences. These commands will generally work cross distro's. consult google. :)

I am using Ubuntu 14.04.

Basic commands

sudo
Super User do: (think of this command as the linux version of "run as administrator"

man

manual pages: $ man command
man ping | this brings up an explanation of how to use ping
to exit type: q

tasksel - (ubuntu server)

$ task select. used to automatize server installation and and configuration.


apt-get 
used to install files and programs. searches pre-defined repositories for software, and downloads it.
$ installation: sudo apt-get install APPLICATION
$ uninstall: sudo apt-get remove APPLICATION
$ update: sudo apt-get upgrade APPLICATION



services

sing dpkg to install packages

dpkg is a command-line tool used to install packages. To install a package with dpkg, open a Terminal and type the following:
cd directory
sudo dpkg -i package_name.deb
Note: replace directory with the directory in which the package is stored and package_name with the filename of the package.
It is recommended that you read the dpkg manual page before using dpkg, as improper use may break the package management database. To view the manual page for dpkg, open a Terminal and type man dpkg.

Getting a list of recently installed packages

You can use the dpkg logs to discover recently installed packages; this is handy if you want to roll back some recent installations to a previous system state.
zcat -f /var/log/dpkg.log* | grep "\ install\ " | sort

More detailed information on this can be found here.




No comments:

Post a Comment