Use of sudo command in linux

 

  sudo - execute a command as another user.

  Format: sudo [options] command
   
  Eg1[jim@lnxserve jim]$ sudo head –n 5 /etc/passwd

  Here the command can only be run by root. But sudo helps to run the command

  by another user jim.

  • 70 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

what is the command 'ls' used for?

       ls – list directory contents.    ...

for what the command 'tail' is used for?

  tail – print the last 10 lines of the named file.If more than one file is specified...

for what purpose the commad 'du' is used for?

      du- estimates the file space usage.   Format: du [options] [file]...

what is the use of command 'grep'?

    grep- search one or more files that matches a regular pattern  Format:...

'cp' command in linux

    cp - copy files and directories.  Format: cp [options] source...