Basic commands used on Linux terminal part 7

0

Basic commands for linux terminal continues from here.

  1. Date – this command is simply related to date and time management. Usually this command is used for check and set server date and time. Server date and time is important in case of most of the services. So we need to check and set system time according to the location. If we want to check then only date command is enough but if we need to set then we need to go through some options.
    example: date [option] time&date
  2. Kill – this process is a very important for process management. Using top or ps we can find the process ID of the system. Then if we need to stop that process or processes then we have to use this command to kill the process. If we have any zombie process than we need to kill that process for system performance. Using this command is easy.
    example: kill PID
  3. Top – one of the mostly used commands for monitoring the system performance. There are various ways to show different level of process using this command. We can initially find the system processes using this command. Also we can find the memory use and processor activities using this command. We can find the optimal use of a system using this command.
    example: top
  4. Quota – this is a user quota management tool. This is used for various kind of service management too. Usually using this command we can monitor the space allocated to a user and what is the limit provided to the user. Also we can set space limit for a user using this command.
    example: quota [option] username/ groupname
  5. Locate – one of the most necessary and easy to use command line tool for search. It is difficult for any beginner to search and find files from the command line interface. This command is easily detectable and useful for any beginner. This command will show us the location of a file or locations of a file with the same name.
    example: locate filename
  6. Corntab – crontab is a schedule service. It let use set the schedule for any particular job for execution. We need to specify the time in a particular manner so that the job takes place on a exact time. The time consists of month, week, date, hours and minutes. So it is necessary to understand the time according to this service.
    example: crontab [option]
  7. Diff – this command is used for differentiate between two files. Here we need to provide two files as arguments. Also there are different options we have for a particular way of reporting. We can find the difference according to the first and second files also we can find difference according to a special symbol or even according to the line number.
    example: diff [option] file1 file2
  8. Service/systemctl – this command is used to maintain a service. We can use both of this commands for maintenance of a service. Systemctl is used from centos 7 before that we used to use service as a command to maintain a service. It has three options in case of service start, stop and restart. But in case of systemctl it has 2 more those are enable and disable.
    example: service start/stop/restart servicename or
    systemctl start/stop/restart/enable/disable servicename
  9. ln – this command is used for linking two files in linux. There are two types of links we can make. Hard link and symbolic link. For both of those we need to put proper option and two arguments. One is the source file and the other file is to which file we need to make the link with.
    example: ln [option] sourcefile destination_link_file
  10. Rsync – a very useful command for backup and restore command on CLI. This command line tool use incremental algorithm for taking backup on the local host or on a remote host. In case of remote host we need to use user and password credential to get access to the remote access.
    example: rsync [option] sourcedirectory destination directory

Leave A Reply

Your email address will not be published.