Command Description Peter Griffin Lois Griffin Joe Swanson Cleveland Brown
Basic Linux Cheat Sheet
Command Description # root user prompt $ user working prompt $logname Displays current user name $pwd Present working directory $date Display current date & time $cal Display current month calendar [ … ]
DHCP Server
##### TO CONFIGURE THE DHCP SERVER ###### Step 1 ##### TO ASSIGN THE HOSTNAME ##### hostname dhcp.zoom.com hostname ( to check ) ifconfig ( to check the ip ) vi [ … ]
To update old releases of Ubuntu os
In the command line open below config file vi /etc/apt/sources.list http://in.archive.ubuntu.com/ubuntu/ http://security.ubuntu.com/ubuntu In the place of above files i.e in.archive , security Replace with old-releases as below and save the [ … ]
OSI Model
Shortcut to remember the flow of OSI model (APSTNDP) ApplicationLayer a PresentationLayer p SessionLayer s TransportLayer t NetworkLayer n DatalinkLayer d PhysicalLayer p
To Split CSV file Into Multiple Files In Linux
To split csv file Into multiple files in linux split -d -l 100000 file.csv new/file_part_ split -d -l 20000 example.csv /var/lib/mysql-files/split_ output ======== split_00 split_02 split_04 split_06 split_08 split_10
Sublime Text Installation In Ubuntu
For Sublime-Text-2: sudo add-apt-repository ppa:webupd8team/sublime-text-2 sudo apt-get update sudo apt-get install sublime-text For Sublime-Text-3: sudo add-apt-repository ppa:webupd8team/sublime-text-3 sudo apt-get update sudo apt-get install sublime-text-installer If you want to remove any [ … ]
To Deny Root Login
open Terminal and edit below config file vi /etc/ssh/sshd_config and search for /Root and make below changes #LoginGraceTime 2m PermitRootLogin no #StrictModes yes #MaxAuthTries 6 #MaxSessions 10
How to unlock user after Regular login attempts Failed
After regular login attempts failed you can unlock the user with below command faillock –user username –reset example : faillock –user rahul –reset
Sudo Permissions
In the terminal open Visudo file. Enter the name to which user you are giving sudo permissions In visudo file, then save & Exit. root ALL=(ALL)ALL rahul ALL=(ALL) ALL srinu [ … ]