Linux Commands Flashcards
Practice Linux Terminal Commands
How to see all running processes in Linux System ?
htop
How to create alias ?
alias list=’ls’
How to list all aliases?
alias
How to search in Linux ?
locate filename
find / -name sample.txt # search for txt extension in given space
How to get hardware info ?
lscpulsmemlshw
How to read & execute file contents?
source filename
What is TCL interpretor ?
“Tool Command Language” (it is pronounced “tickle”)Its an command line interpreator .
How to get Welcome String after launching Linux Terminal ?
in .bashrc write your welcome string ,echo ‘Welcome Message’
What is the structure of Linux command ?
cmd -optons target
ls -lrt /tmp
How to get the calendar in terminal ?
cal
How to get the date ?
date
How to get the Disk Usage ?
df -h
How to get the file & directory size ?
du -sh /rooot/*
How to see processes that consume the most system resources?
top
How to get the short description of commands ?
whatis ls
How to get the location of commands & its manual
wehereis ls
How to get the full path of command ?
which pwd
How to list the directory contents in full detail in kb mb gb ?
ls -lah
How to go to the home directory ?
cdcd ~
How to Stop Particular Command in Terminal
ctrl + c
How to List Directory contents ?
ls
How to view file contents ?
cat filename
less filename
How to redirect ouptut ?
By using redirectional operator : cat /dev/random > /tmp/tempfile
How to clear terminal screen in linux ?
clear or ctrl + l