Skip to content

Latest commit

 

History

History
39 lines (35 loc) · 1.17 KB

File metadata and controls

39 lines (35 loc) · 1.17 KB

'sudo' Command

  • sudo allows a permitted user to execute a command as the superuser or another user.

Root access using 'sudo' command:

  • using option '-s'
    fiesta@fiesta-VirtualBox:~/Desktop$ sudo -s
    [sudo] password for fiesta: 
    root@fiesta-VirtualBox:~/Desktop# 
  • using option '-i'
    fiesta@fiesta-VirtualBox:~$ sudo -i
    [sudo] password for fiesta: 
    root@fiesta-VirtualBox:~#
  • using sudo su
    fiesta@fiesta-VirtualBox:~$ sudo su
    [sudo] password for fiesta: 
    root@fiesta-VirtualBox:/home/fiesta# 

Installing '.deb' files using sudo

  1. Download the file and go to the Target folder.
  2. Open the Terminal in the Target folder.
  3. Execute sudo apt install ./<file_name>.deb

NOTE: In the following example, we have .deb chrome file from the offical webite,

fiesta@fiesta-VirtualBox:~$ cd Downloads
fiesta@fiesta-VirtualBox:~/Downloads$ ls
google-chrome.deb
fiesta@fiesta-VirtualBox:~/Downloads$ sudo apt install ./google-chrome.deb
[sudo] password for fiesta: 
Reading package lists... Done
Building dependency tree....