Posts

Showing posts with the label LINUX

How to create Cron Jobs

Image
This is the sample crontab:

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...

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...