Docsity

10 most basic linux command that every beginner should know, Study notes of Linux skills

Toggle sidebar
bg1
Basic Commands
1) pwd - it shows present working directory. Directory in linux means a 'folder'
currently we are in /home/ubuntu folder
2) ls - it shows all the available files and folders in the current directory
3)cd - It is used to change the directory . for example if i have to move to a directory called bin then
i ll press cd bin.
4) whoami - it shows the user name of the currently logged in user. for example right now the user
name is ubuntu
5)date - it will show date and time
6)mkdir - it is used to make a folder or directory . For ex - I want to make a folder with name linux-
labs , so I need to run mkdir linux-labs.mkdir means make directory
7) sudo su - tp switch to root user
su - username - to switch to any other user
8) history - to see the history of all the commands that I ran just type history
pf2

Partial preview of the text

Download 10 most basic linux command that every beginner should know and more Study notes Linux skills in PDF only on Docsity!

Basic Commands

  1. pwd - it shows present working directory. Directory in linux means a 'folder' currently we are in / home/ ubuntu folder
  2. ls - it shows all the available files and folders in the current directory 3)cd - It is used to change the directory. for example if i have to move to a directory called bin then i ll press cd bin.
  3. whoami - it shows the user name of the currently logged in user. for example right now the user name is ubuntu 5)date - it will show date and time 6)mkdir - it is used to make a folder or directory. For ex - I want to make a folder with name linux- labs , so I need to run mkdir linux-labs.mkdir means make directory
  4. sudo su - tp switch to root user su - username - to switch to any other user
  5. history - to see the history of all the commands that I ran just type history

this showed all the commands that I ran

  1. touch โ€“ to create a file
  2. uname โ€“ shows name of our kernel