Posts

Showing posts with the label Linux

pwd command

The  pwd  command displays the full pathname of the current directory. Syntax The syntax for the  pwd  command is: pwd

ps command

Image
The  ps  command displays active processes. Syntax The syntax for the  ps  command is: ps [options] Options Option Description -a Displays all processes on a terminal, with the exception of group leaders. -c Displays scheduler data. -d Displays all processes with the exception of session leaders. -e Displays all processes. -f Displays a full listing. -g list Displays data for the  list  of group leader IDs. -j Displays the process group ID and session ID. -l Displays a long listing -p list Displays data for the  list  of process IDs. -s list Displays data for the  list  of session leader IDs. -t list Displays data for the  list  of terminals. -u list Displays data for the  list  of usernames. Example 1.  If you run  ps command  without any arguments, it displays processes for the current shell. $ ps List Current Running Processes Print All Processes in Different Form...

passwd command

The  passwd  command changes the password for the  user . Syntax The syntax for the  passwd  command is: passwd [options] [user] Options Option Description -s Displays password information. passwd Running  passwd  with no options will change the password of the account running the command. You will first be prompted to enter the account's current password: (current) UNIX password: If it is correct, you will then be asked to enter a new password: Enter new UNIX password: ...and to enter the same password again, to verify it: Retype new UNIX password: If the passwords match, the password will be changed.

mv command

The  mv  command allows you to move and rename files. Syntax The syntax for the  mv  command is: mv [options] sources target Options Option Description -f Forces the move. -i Prompt for a confirmation before overwriting any files. Example mv -f tech /usr