ubuntu important commands you should know before going to interview

 Basic Navigation Commands:

- pwd

- cd

cd ..

cd .

cd -

cd /

- ls

ls -a

ls -al

ll

File Handling Commands:

- mkdir [directory name]

mkdir .[directory name]

- rm

rm -rf *

rmdir


- touch

- nano

- cat

- vi

- mv

- cp


System Information:

- uname

uname -r (kernel number)

uname -a (All details of your system)


User Information & Permissions:

- whoami

- sudo su #not preferable to be used

exit

- sudo [command]

- chmod -x [filename]

- chown root:root [Filename]

- chmod 444 [filename]

if you exit as root and try to edit the file as a normal user it will deny permissions as you don't have access.

- chmod 777 [filename]

this will give it all information


Miscallaneous Commands & Shortcuts:

- [TAB] auto-fill

- History  (different for different users)

- htop

- tree [needs installation]

- echo "Hello WOrld"

- cal

- bc

- sh [directory].sh

Internet commands:

- wget

- curl

- tar zxf

- java --version

- ping google.com



Installing Packages:

- sudo apt update

- sudo apt upgrade

- sudo apt install [name of package] -y

- sudo apt remove [name of package] -y

Anic_an_engineer

Hi, I am Anic an IT Professional . I like to share my knowledge and experience. Thanks for visiting my site.

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post