/Linux-Basics-

Basics and Go to Linux Commands are mentioned in this repository

Linux-Basics

Basics and Go to Linux Commands are mentioned in this repository

Skip to content Search or jump to… Pull requests Issues Marketplace Explore

@hamzashabbir11 hamzashabbir11 / Linux-Basics- Public 1 0 0 Code Issues Pull requests Actions Projects Wiki Security Insights Settings Linux-Basics-/Linux Commands.txt @hamzashabbir11 hamzashabbir11 Linux Basics Latest commit 2998a4f on Mar 12 History 1 contributor 50 lines (46 sloc) 1.16 KB

cd / # go to root directory cd .. # back in a directory cd dir name # move o that particular diectory ls # list files in a directory sudo mkdir dirname # make directory with name dirname sudo touch file.text sudo vi file.txt i # inset mode enter text esc :w :q ls cat file.txt #shows the chamges in the file sudo cp filename /path sudo mv filename /path sudo rm filenamne y

man # help about a particular command man ls man touch man mkdir find /path -name "app.txt" #* searcching a file and this returns the path uname #names the OS uname -a # mchine info lscpu # cpu info df # disk space df -h # human readable becomes du /path # files and their space du -s /path # total size of directory and path return
date # date cal #calendar w #who is online sudo apt-get install package-name sudo apt-chache search keyword info type man # shows location of a command bg # background services free # free memory ps # shows running processes kill # kill process id

kill id nice # runs program on low prority top # tells cpu and memory utilization su - # switch to root user shutdown # shut down pc

© 2021 GitHub, Inc. Terms Privacy Security Status Docs Contact GitHub Pricing API Training Blog About Loading complete