|
RootSmart.com Podcast|Rootsmart Podcast #36 5/7/06 Episode
Get it Now!mp3 fileContact Details:Email:questions@rootsmart.comVoicemail: (206) 734-4825Skype: rootsmartVote for us at Podcast Alley Live show on May 22 to commemorate one yearit will be at 4:00 ESTMore info to comeVoicemail:difference between javascript and Javaand what you probably have is the install for web, but not desktopgo to java.com, they have how to install it for youContentToday we are talking about directorieslast week we did a podcast on permissionsso now that you can change the permissions on directories, you might want to go in themyou can do all of this through Konqueror or Nautilus depending on your Window Mangereverything is more fun when you use the command lineso before I explain what different directories are lets go over some directory commandsalso before we start the ~ means home directoryso to change directories we use the cd commandcd stands for change directoryso you can use it cd /home/and that will change to your home directorynow there are some special charactersif you do cd ../ you will go up one directoryso if you were in the /home/joe directory and you ran that command you would go to the /home directoryalso the cd ./<folder name>will go into a directory starting from your current directoryso if you were in /home and you wanted to go to /home/joe you would type cd ./joeyou can type cd /joe because that would back out to your root directory (/) and try to go to /joeanother command you should know is pwdthis will Print your Working Directoryall you have to type is pwd and it will tell you where you areanother command is lswe talked a little about this last podcastit lists all of the files and folders in your current directoryso now we can move around in the command line let me tell you about the root foldersthese are the folders that you see when you go to the / directorythe first you will see is /binthat contains executablesthese don't need you to link directly to themwhen you type something like ls it will look in this directory to see if that file is in therewhen it finds it, it then runs itmost basic Unix commands are in here such as ls, cp, cd and many othersif you have a executable that you run a lot put it in that directory so you don't need to provide the full path to itthe next one is /bootthis is the files that the kernel needs to boot, don't mess with thesethe next directory is the /dev directorythis hold mount points to the boot drive and otheryou don't need to go in therethen you will see the /etc directorythis has main system configuration filesyou will see X11 config files, as well as many othersif you need to find a config file, and aren't sure where to look, that is a good place to checkthe /home directory is where all of your users home directories areif you have a user call joeyou will have a folder called /joe in therethe next directory is /liblib is short for librarythis hold library filesthese basically are pre-made code that linux programmers can use to there advantage in their own codealso you have the /proc directorythis is for system monitoringmany system monitoring applications use these filesthey are differen't from distro to distroalso generally, don't touch any of these filesthe next directory is /sbinthese contain system executablesthese are usually system administration programs so normally you won't have access to them as a local userthese usually are very powerful commands, yet can do a lot of damagethe tmp directory is very convientthis has almost not restrictions in itit is used to put temporary filesa lot of distros clear this at bootso don't put anything critical therethe /usr directory does not actually contain any user filesit is where the bulk of the Linux system liesyou have many third-party pieces of software that put info therethe last folder we are going to talk about is /varthe /var directory is where programs record runtime informationgenerally this is log files, user tracking and cachesTechnorati Tags: Linux, RootSmart.com
[ Mon, 08 May 2006 18:11:06 -0400 ]
|