0% found this document useful (0 votes)
8 views

Linux Basic Commands

Uploaded by

gedayoc238
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Linux Basic Commands

Uploaded by

gedayoc238
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 10

LINUX BASIC

COMMANDS
HOPE
BY – PANTHERETHICS
 COMMAND LIST 
 SYSTEM 
• w => to know how is online
• cal => show calander
• whoami => to know login type
• hostname –i => to know system host ip
• hostname => to know host name
• date => show current date
• uname –a => system info
• uptime => how long system has been running
• uname –r => to know kernel information
• last reboot => show sys reboot history
• finger user => user info
 COMMAND LIST 
 PROCESS RELATED 
• ps => show currently active process
• ps aux | grep ‘telnet’ => find all process id related to telnet
• top => show all running process
• bg => resumes suspended jobs without bringing them to foreground
• pmap => memory map of process
• kill pid => kill process with mentioned pid id
• killall proc => kill all process named proc
• fg => brings the most recent job to foreground
• ctrl + z => to stop any process
• fg n => Brings job n to the foreground
• pkill process-name => sendsignal to a process with its name
 COMMAND LIST 
 DIRECTORY 
• cd .. => to go back from any directory
• cd /test => change to /test directory
• cd => go to shome directory
 COMMANDS LIST 
 HARDWARE 
• dmesg => Detected hardware and boot messages
• cat /proc/cpuinfo => cpu model info
• badblocks –s /dev/sda => Test for unreadable blocks on disk sda
• hdparm –tT /dev/sda =>Do a read speed test on disk sda
• dmidecode => show hardware info from the Bios
• lsusb –Tv => show usb devices
• hdparm –i /dev/sda => show info about disk sda
• lspci –tv => Show PCI devices
• free –m => Used and free memory (-m for MB)
• lsblk => Displays block device related information in
Linux
• lshw => Displays information On hardware configuration
of the system
• cat /proc/meminfo => Hardware memory
• cat /proc/interrupts => lists the number of interrupts per
cpu per i/o device
 COMMAND LIST 
 USERS 

You might also like