Re: Learning What I Need To Know About Basic Linux

  • From: "Bill Gallik" <BillGallik@xxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 28 Jul 2010 07:55:17 -0500

Jim,

Call me with any questions you may have. In the meantime, I'll try to answer some of your questions:

Q: Is there a better shell?

A: I always preferred ksh (usually pronounced "K Shell"). If you execute the following command line you'll get a small book (manual page) on ksh:

       man ksh (you may want to redirect to a file)

Q: What are the default permissions on newly created files?

A: In your .profile you can deploy a command line that will direct the system as how to set permissions on new files, I believe it is:

       umask 0###
where 0### is the octal representation of the permission bits you want stripped from the new file.

For example, "umask 0222" will create files with write permission denied for everybody. You may want to again seek help from the man page:
       man umask

Q: How do I control the size of log files?

A: As a matter of practice, this was done via cron management where a "crontab" entry was created by/for the user that would run a shell script that would move the current log to a back up of some sort and recreate the new (renamed) log file. For example:

export LogFileName="whatever it is"
export DayName="`date +%w`" # %w tells "date" to return the abreviation for the day of the week.
cd (directory pathname where the log file resides)
mv $LogFile $LogFile.$DayName # Move the current to a file of the same name, but with the name of the appended
touch $LogFile # create new log file




Boy, there's a lot here, feel free to call me.
----
Holland's Person, Bill
E-Mail: BillGallik@xxxxxxxxxxxxxx
- The early bird may get the worm, but the second mouse gets the cheese!
__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: