1).Advanced Linux troubleshooting Tips:


Tricks to become better and faster at disguising and resolving troubles of a linux system 




dmesg 


13 linux command every linux admin should know :


1) .df -Th command :



it will list out the disk space which we are used into linux os .


so in this way we can check it out number of avilibity filesystems, used space ,available space and mounted place



df -ik :


it will list out number inodes of the filesystem.


du -sh command :


it will list out directory and file size which is available for linux os .


in this way we can check it how much data are used consuming 

on each directory



then go to any directory like cd /etc, cd/log 


under this directory we can execute the command like as the ,



du -sh * command 


In this way we can figure it out which directory and logs consumes more logs .


fallocate command :


so in this way we can allocate the space for the particular file.


fallocate -l 100m lokendra


lsof command:




netstat -tunlp command :



in this way we can list out the open ports of linux server . 


in this way easily we can figure it out the ,


which port is listening on tcp and which is port is listening udp .


which process is running 

which process is stopping currently.



nmap command :


which issued to check available open ports for the remote server


namp -A 8.8.8.8


pwd command :


which is used to check it out current working directory


ls -larth command :



it will list out files wiht human readable files and directories.


l- list


a-archive


r-recursive


t-time based


h-human readable


lablk command:


it will list out the block devices 


uname -a command:


it will check it out the kernel version into linux os 



along with system architecture 


alias command:


which is used to user defined shortcut command for the particular command and group of commands .


which i used to replace the string from shell is another string.


al the alias is exiting : if you want to craete the own alias then we can executer the command like as the,

alias l ='ls-l';


alias nandhini='cd /tmp'


alias htt='vim/etc/http:/conf/httpf.conf


chmod -change the file permissions 


chmod o+x filename 


chmod 777 filename


chmod u+x filename


chown command:


it will check out the file group ownership permissions


locate command :


which is used to find the location of the particular file .


before using the locate command , we can execute the 


locate filename


locate fstab

namp -A 8.8.8.8



Comments

Popular posts from this blog

Linux interview Questions :

AWs Interview Questions