Usefull command konsole - Digital Website

Go to content

Main menu:

Computer science > Linux > Debian 7

Usefull command linux konsole.

The command konsole is the most usefull tool there excist on the planet. This documentation is here listen under "Debian" but the commands can be used into every Linux / Unix distro.

All commands below need to be excecuted into the command konsole!

  • unrar a file: Be sure you did install unar - unrar tools into the software package.

example: unar yourdocumentname.rar       => Enter

  • remove a directory:

example: rm -r directory     (linux will give a prompt for the files into the directory, if you sure you want to delete them)
rm -rf directory    (linux will just delete the directory and files into it, without asking if you sure you want to delete the files inside)

  • remove a package: (example called mplayer)

example: sudo apt-get remove mplayer                 (This will remove the programme mplayer)
sudo apt-get --purge remove mplayer      (This will remove mplayer and all his configuration files)

  • root login: When you want to login as ROOT (IS DANGEREOUS), hope you know what you are doing!

example: su                      (password will be asked, after correct password you have the root rights!)

  • installation or actions who need with root administrator rights:  (more safe then using su !!!)

example: sudo (and the action you want to do)

  • Listing all installed packages:

   example: dpkg --list

example: dpkg --list | less
example: dpkg --list | grep -i 'http'

  • Clear the konsole:

example: clear

  • Browse to a certain location on your harddisk:

example: dir
ls     (sub options are also possible, type for help of a command  ==> ls --help )

  • Closing the console or leave root:

example: exit

  • Create a directory:

example: mkdir (and name of the directory)

  • Copy files to a location on your harddisk:

example: cp (name file) (place where file need to be copied)
with cp --help you will find manny more options that you can do with this command about copying!

  • Get the actual linux kernel information:

example: uname -a

  • Get the information about the actual used linux distribition on your computer:

example: cat /etc/issue

  • Get the actual used distribution version on your computer:

     example: cat /etc/*release


     example: lsb_release -a


Back to content | Back to main menu