Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

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

This guide introduces the ten most essential Linux commands that every beginner must learn to navigate and operate within a Linux-based environment. These commands form the foundation of working with the command-line interface (CLI), allowing users to explore directories, manage files, view system information, and perform basic administrative tasks.

Typology: Study notes

2024/2025

Available from 04/22/2025

prerna-kutlehria
prerna-kutlehria 🇮🇳

3 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

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