Linux basic commands

Share the joy
  •  
  •  
  •  
  •  
  •  
  •  
  •  

To get the list of file with permission:

ls -l <foldername>

To get the list of folder and files present in folder
ls <foldername>
To get resource status about cpu,memory, storage space

free -m

To give read write premission on folder
chmod -R 777 <folderpath> (for read / write )

where -R is recursively apply to all folder and sub folder and files present in them .

To change owner of folder:
chown  <user:group> folderpath/*

To Update the packages of Linux

sudo apt-get update                         # Fetches the list of available updates
sudo apt-get upgrade                      # Strictly upgrades the current packages
sudo apt-get dist-upgrade              # Installs updates (new ones)

 

Vim editor for linux:

vim <filepath> -> to edit or read file

:i -> insert

:q -> quit

😡 -> save and exit

:wq -> save and exit

:find -> to search word


Share the joy
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.