Sometimes a Keyboard is Faster Than a Mouse!
Sometimes typing the path to a file or folder is way faster than clicking, searching, clicking and searching. However there are different ways to type a path. This article deals with the difference between LFS and UNC paths.
What is LFS and how is it different from UNC?
The GUI Graphical User Interface has been around for a long time now and honestly it makes a lot of things simple and easy, however sometimes typing is the way to go.
Nearly every operating system has a way for you to open folders without using the click method of the mouse. Sometimes this can speed up the process. There are basically two types of these keyboard based shortcuts. Although the wording used in Unix, Linux and other operating systems may be different the Windows names are generally used for this purpose.
LFS stands for Local File System. This is the syntax or structure used by Windows computers to access local files and directories.
UNC stands for Universal (or Uniform) naming convention and it is the syntax or structure used by Windows based computers to access shared network resources.
So, what is the difference?
Let’s look at LFS first.
With the advent of the GUI interface most of use get around simply by clicking the mouse and selecting objects or menu items, but you can also enter the drive path of the storage device, folder / directory or file you would like to access. Let’s say you have a folder called “football” on the computer and it is stored inside another folder called “Sports I like”. Lets suppose that the folders are on the C: drive The format is Drive letter, then a backwards slash then the folder. Each sub folder is divided by a backwards slash also. On most Windows systems the LFS path for our example would look this “C:Sports I Likefootball”.
Note: In an Open window you can use the forward slash as the folder divider, but it will automatically change it to the backwards slash when the folder window is open.
You can use this path to get to the folder. Opening any drive, folder or object window you could enter the path into the bar across the top and press the Enter key to open the folder.
Now we enter the LFS path into the address bar at the top of the window and press the Enter key. The folder is opened.
You could also use the command window and at the prompt enter the path to get a DOS like view of the directory. If the Command prompt is not visible in the start menu you can select the Run command and enter CMD. Pressing the enter key or pressing the OK button will bring the command window up.
To change the path to the new location you need to use the command CD (which stands for Change Directory) followed by the LFS path. You can then see the contents of the directory/folder with the DIR command.
It would look something like this:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:Documents and SettingsLee & Colleen>cd C:Sports I Likefootball
C:Sports I LikeFootball>dir
Volume in drive C has no label.
Volume Serial Number is 8C4D-C97E
Directory of C:Sports I LikeFootball
02/12/2009 01:05 PM .
02/12/2009 01:05 PM ..
02/12/2009 01:04 PM 0 Colts record for 2008.txt
1 File(s) 0 bytes
2 Dir(s) 81,605,136,384 bytes free
C:Sports I LikeFootball>
On Unix, Linux and many other systems a similar path can be used to locate and open local folders and files. For example the same thing I just demonstrated in the command window of a Windows based PC can be done on a newer Macintosh OS by using a terminal window to Darwin.
You would simply enter cd ‘/Sports I like/football/’ Notice the quotes and the forward slashes. Also some versions of the Mac OS have a “Go to the folder” window which will allow you to enter the local path of a folder. Pressing the Command key – Shift key and G keys together will get you the window. At that point you can simply type /Sports I Like/football/ and hit the “go” button.
Now lets look at UNC.
The UNC path consist of the computer name and the folder names separated by backslashes. Instead of using a drive letter we simply use the computers name followed by each folder name divided by the backslashes.
Suppose that the “football” folder was inside a folder called “Sports I like” on another computer or network server that we had rights to. As long as the “Sports I like” folder is shared we could access that folder through the point and click method or we could use the UNC path to get to it. If we used the point and click method we would have to access the network connection, locate and double-click the computer, locate and open the share, locate and open the ... You get the idea.
Let’s say the computer is called “Colleens_Dell”. All we have to do is enter the UNC path “colleens_dellSports I Likefootball in the address line of a window to get to the folder as shown here.
On a Macintosh you would want to use the Go menu option “connect to Server” and then enter the UNC path like this: smb://colleens_dell/Sports I like/football/. Notice the forward slashes. You will get prompted for a user name and password.
Note: SMB stands for Server Message Block and is simply a protocol used for the Mac to talk to other computers. You may have heard that on newer Macs this has been changed to CIFS (Common Internet File System.) but SMB still works.
Of course there are variations in how you get connected using a UNC path with the different flavors of Unix and Linux but the concepts of LFS and UNC Paths are basically the same for every operating system.
Well there you have the basics of using LFS and UNC and what the difference is. So now do some racing of your own. Enter a path and then do the same thing with mouse clicking. Which way was faster?
About the Author:Lee Brannon is an experienced Systems Administrator, technical writer and I.T. professional. He currently operates a help and information sight for computers, cell phones, video games and gadgets at Gizgadmo.com
Article Source: ArticlesBase.com - Sometimes a Keyboard is Faster Than a Mouse!