Saturday, October 8, 2016

Unix commands - WebSphere Application Server Interview Questions - Part -14

1) Tail     :   Displays last 10 lines from ending

Syntax : $ tail file-name



2) Ch mod : Change Mod

Syntax : $ ch-mod [user/group/others/all]+[permission] file-name



----> User : read , write , execute (r,w,x)

----> Group : read , execute (r,x)


----> Others : No Permissions.



a) Read : 4

b) Write : 2


c) Execute : 1





3) Top : View CPU usage for all processes

Syntax : $ top



4) Kill : Used for terminating process



Syntax : $ kill [-signal] [process id]

ex: $ kill -9 process id




5) $ kill -0 : Terminates all current process except your shell



6) Who : List all users who are currently on the system.

Syntax : $ who



7) who am i : Reports the details about the command user.

Syntax : $ who am i

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Recover password from .sth file

Create perl file (unstash.pl) and run the script. #!/usr/bin/perl #usage perl unstash.pl use strict; die "Usage: $0 \...