Archive

Posts Tagged ‘Linux’

How to Rename a File in Ubuntu : Ubuntu Beginners

February 1st, 2010 2 comments

This article is part of a series entitled “Ubuntu Beginners”, which walks new users through basic Desktop and Command Line usage. This article will detail how to rename files, using both the graphical interface as well as the command line. Included below are GNOME, KDE and command line methods.

Rename Files – Nautilus (GNOME)

If you are using the standard Ubuntu, which uses the GNOME Desktop Environment, the file manager is called Nautilus. Anytime you are browsing files or folders graphically, you are using Nautilus. I’ve included screenshots below displaying the default Home folder, selecting a document, and renaming the document.

This is the default Nautilus view in Ubuntu 9.10, displaying the contents of the home folder. You’ll notice that there are pre-populated directories (folders) for Documents, Downloads, Music, Pictures, etc.

Nautilus - Home Folder

Nautilus - Home Folder

In this next screenshot I’ve selected a document in my Documents folder, and selected the ‘Rename…’ option. This is done by selecting the file, right-clicking the mouse and selecting the ‘Rename…’ option.

Nautilus - Rename File

After selecting the ‘Rename…’ option, the file name will become editable. You can update the text to your preference, and rename your file.

Nautilus - Rename

Nautilus - Rename

Once you’ve updated the file name simply hit the [ENTER] key on your keyboard, or click your mouse anywhere outside of the editable text area. The edit-field will disappear and your file will have been renamed.

Rename Files – Dolphin (KDE)

If you have installed Kubuntu, the KDE-based Ubuntu variant, your file manager is called Dolphin. I’ve included screenshots of Dolphin, as well as the process of renaming files in Dolphin.

This is the default Home folder as displayed by the Dolphin file manager.

Dolphin - Home

Dolphin - Home

In order to rename a file, simply right-click on the file and select the ‘Rename…’ option. You’ll notice that Dolphin also provides a keyboard shortcut to rename using the F2 key. This means, instead of right-clicking and selecting ‘Rename…’ you can simply press F2 after the file has been selected.

Dolphin - Rename File

Lastly, enter the new name of the file into the dialog box and update your changes by hitting the [ENTER] key, or clicking the ‘Rename’ button.

Dolphin - Rename Item

Rename Files – Command Line (Linux)
The method of renaming a file on the command-line is generic to Linux. In other words, this method should apply to any Linux distribution, any version, and any variant.

In Linux, renaming a file is essentially the same as moving a file. Where moving a file is simply moving a file from one location to another, renaming a file is essentially moving the name of the file. The contents remain the same, we’ve simply moved the place where you’d find them–from one name to another.

To rename a file, using the following syntax:

mv welcome-to-ubuntu.doc renamed.doc

A few additional examples:

mv IMGOOO1.JPG release-party-pictures-1.jpg
mv IMGOOO2.JPG release-party-pictures-2.jpg

You get the idea. I understand it can be confusing to use the mv (move) command to rename a file, but you’ll find that you get used to it rather quickly and then not even think about it.

Conclusion
No matter the environment that you’re in, whether in be GNOME, KDE or the command-line, renaming files is simple. Right-click and select ‘Rename…’ is generally standard between graphical environments, and using mv on the command-line will work on all Linux distributions. I hope this beginner tip has been helpful.

Categories: Beginner Tags: , , , , ,

Announcing Root Certified

August 12th, 2009 2 comments

Today I want to formally announce the formation of my new company, Root Certified. This company was created in partnership with Aaron Toponce, aimed at providing expertly hosted applications and Linux consulting. Aaron and I have been good friends for years now. We’ve worked together as Linux Instructors and within the Linux community. We recently decided that we wanted to apply the knowledge and expertise that we have toward business, taking on new and exciting challenges. Our plan is to provide expert IT services to small and medium sized businesses.

Currently we’re offering a growing number of expertly managed hosted applications including:

Each of these hosted applications is built on a dedicated virtual server, at very affordable rates. We believe that too many hosting companies oversell their hardware and don’t provide the level of service many small businesses need. Our goal is to exceed clients expectations by providing a completely worry free service. We know each business has different needs, and those needs can’t always be met by turn-key cookie-cutter hosting solutions. We meet with each client to ensure that their needs are met, and we handle all the heavy lifting. All of our hosted applications and basic packages can be customized to provide each client with exactly the services they need.

I hope you’ll take a minute to check out what we have to offer. We’ll be announcing some other very exciting things very soon. Subscribe to the Root Certified Blog for all the latest news.

Explanation of the Ubuntu / Linux file structure : Ubuntu (all versions)

December 20th, 2006 15 comments

In the Linux file system everything is considered a file–even devices, drives and removable media. It definitely is a bit different than what you might be used to in the Windows world, but after a quick rundown (below) hopefully the organization will make some more sense.

The base (or equivalent of C:\) is called the root folder or “/”. The closest equivalent of “Documents and Settings\User” would be “/home”. The “/home” folder stores each users files, settings, pictures, etc. Most of what you do is held within the /home folder. Below is a quick explanation of the rest:

  • /bin – binary applications (most of your executable files)
  • /boot – files required to boot (such as the kernel, etc)
  • /dev – your devices (everything from drives to displays)
  • /etc – just about every configuration file for your system
  • /home – locally stored user files and folders
  • /lib – system libraries (similar to Program Files)
  • /lost+found – lost and found for lost files
  • /media – mounted (or loaded) devices such as cdroms, digital cameras, etc.
  • /mnt – mounted file systems
  • /opt – location for “optionally” installed programs
  • /proc – dynamic directory including information about and listing of processes
  • /root – “home” folder for the root user
  • /sbin – system-only binaries (see /bin)
  • /sys – contains information about the system
  • /tmp – temporary files
  • /usr – applications mainly for regular users
  • /var – mainly logs, databases, etc.

I hope this helps. Again, for the most part as a regular user you wont need to bother with the rest of the areas of the system. Occasionally you might need to edit a configuration file in /etc (as you may have seen in earlier posts), but the rest pretty much takes care of itself.

Categories: Linux Tags: ,