Linux process command

  1. exec <command>
    run the <command> and replace the current shell process with the command.
    can be used in the startup script to create a user that has access only to one program.
    Once the use exist from the program it will be logged out (in case this command is in the startup script)
  2. nohup <command>
    will run command that will not stop once we log out.
    Actually what this command is doing is prevent the termination of the process when its parent process is dying.
  3. type <command string>
    show what type is the command, if it is a shell built-in, or executable (if executable include its location)
  4. uptime
    show the current, for how long the system is running, the average.
  5. free
    show how much memory is used and how much is used
    free -g
    will show the memory information is Gigabyte
  6. source <fileName>
    execute fileName in the current shell (instead of subshell by default). This mean all variable, alilas and function that are created by the execution of fileName, will be aviliable in the current shell after the execuation.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s