Home UNIX
UNIX
How to set you script to run automatically when UNIX starts PDF Print E-mail
Written by Administrator   
Monday, 10 October 2011 05:45

 

Let's say you want to add your script or process to UNIX startup, or even you want to be automatically restarted if someone kills it, so here is how you do it:

 

1. This is done with the help of inittab . So you can check all the current entries via:

lsitab -a

Last Updated on Monday, 10 October 2011 06:02
Read more...
 
FIND command PDF Print E-mail
Written by Administrator   
Monday, 10 October 2011 05:30

 

Here are the most needed cases when you need to FIND something in your server:

 

1. You want to see the first 50 biggest files in the current location:

find . -xdev -type f -ls | sort +6n | tail -n 50

 

2. You want to all the files which were created TODAY in this specific partition:

find . -mtime -1 -type f -xdev -exec ls -l {} \;

 

Last Updated on Monday, 10 October 2011 05:39
Read more...
 
How to reset password and unsuccessful login count in UNIX PDF Print E-mail
Written by Administrator   
Monday, 12 September 2011 11:25

 

If some user does not remember his password, and is asking you to change it, you can do it via the command:

passwd username

But even if you set new password the user still

Last Updated on Monday, 12 September 2011 11:53
Read more...
 



Latest News

Popular


Powered by Gabriel Ionescu.