Posts

Showing posts with the label PC TRICKS

Custom Routing- Rewriting .htaccess file

Image

TCP/IP Protocol Suite Explained

Image
Communication between 2 machines on a network are done through different protocol suits and TCP/IP is one of them. Well Explained in this video: tcp/ip layers LAYER FUNCTIONALITY Application Data that is sent by the user.             EX: Any script, file, form data etc., Transport Data from application layer is broken down into segments. Each segment is named with sequence id so that they are received and appended in the right order in the receiver end.  The transport header is added to each segment in this layer, which is having the destination and source address with the port number. Internet In this layer Internet header is added to segment, which contains source and destination IP address and routing information [How to reach receiver] Network In this layer Network header is added to segment, which contains source and destination physical address [mac address, ethernet] In this...

All you need to know about VIM Editor

Image
VIM is the popular editor in LINUX Environment. Of course, we have VIM editor for other operating systems like Mac OS and Windows. We have command line version and graphic version of VIM editor. Here we are  dealing  about VIM command line version, because it is common for all operating systems including servers. Different modes in VIM editor : Normal mode : Here in this mode we use VIM shortcuts to navigate through the file , duplicate the content and delete content in the file. By default, if we open the file it should be in normal mode. Insert mode : In this mode, we enter new content into the file. In order to enter in to insert mode, we should press “i”. To leave insert mode, press Escape. Command mode :  In this mode, we give few commands to perform few actions on the file.  In order to enter into this mode, we should press “:” in the normal mode. After a command completes inline mode you are returned to...

What is Ansible

Image

Important LINUX Commands & related Info

Image
Command that lists the last certain number of commands. history history -E      {all commands sort by date and time} history [x]    { List of last x number of commands by using a number } Command line shortcuts: Shortcut Description CTRL + R search for command that we entered on terminal CTRL + P shows the previously run command Copy files and Directories: cp [ NAME OF FILE 1 ] [ NAME OF FILE 2 ] {copy a file into another file} cp [ NAME OF FILE ] [ NAME OF DIRECTORY ] {copy files into directories} Move files and directories: mv [ NAME OF FILE 1 ] [ NAME OF FILE 2 ]  { if the second file doesn’t exist, the first file is renamed as the second file } mv [ NAME OF DIRECTORY 1 ] [ NAME OF DIRECTORY 2 ] { f the second directory does not exist then the first directory is simply renamed } Command to select command from  history ! <command number> Remo...