Warning: Illegal string offset 'name' in /home2/morph/public_html/thelinuxgurus.org/wp-content/plugins/genesis-simple-sidebars/plugin.php on line 53

Warning: Illegal string offset 'description' in /home2/morph/public_html/thelinuxgurus.org/wp-content/plugins/genesis-simple-sidebars/plugin.php on line 55
Computer file

Organizing Your Linux Computer With Directories

Organization is important to many computer users. Without having an organized hard drive you would be unable to locate important pictures, files and data.

 

If you are using a Linux operating system you have the opportunity to create directories that can be used to store and organize files, data and pictures. Here’s a look at how you can create those directories on Linux.

 

Step One: Know Your Directory

 

You will need to know what current directory you are operating in to create a new one. This will help you reduce your chance of receiving an error while trying to create a new directory.

 

Step Two: Create the Directory

 

In the command prompt you will want to type “mkdir (name)”. Replace the (name) with the name of the directory you wish to create. Just remember that you are going to create the directory in the partition that you are in.

 

Step Three: Create Subdirectories

 

To further organize your directories you can create subdirectories. This can be done by typing the command “-p” and the name of the directory that you wish to create. For example you would type “mkdir –p (name)”. Just replace the (name) with the subdirectory you wish to create.

 

With a little bit of practice and research you can create tons of directories that will allow you to organize your data, files and pictures so you can find them faster. As you practice you can learn how to create multiple directories in one command line and how to separate files for ease of use all on the Linux system. Computer using with Linux just got easier.

Restoring Files From Linux After They Were Deleted

When using the computer mistakes are going to happen. The most common mistake is deleting a file that was not supposed to be deleted. While some operating systems make correcting this mistake easy, deleting a file off of Linux and restoring it can be difficult.

 

If you have accidentally deleted a file off the Linux operating system here are the steps you need to take see you can restore the missing file.

 

Step One: Find the Partition

Tux, as originally drawn by Larry Ewing

Image via Wikipedia

 

You must find the partition section where the file was located. This can be done by performing the PWD command and searching for the missing file.

 

Step Two: Use Unmount

 

The command unmount can be used to make sure the file will not be overwritten or accidently deleted. Simply type “unmount” and the file and this will protect the file you wish to restore.

 

Step Three: Use Debugfs

 

The debugfs will make sure no errors occur on your Linux operating system. Occasionally when restoring a file a can cause the operating system to interpret it as an error and shut it down. Performing a debugfs command will prevent this from happening while you restore your deleted file.

 

Step Four: Use Isdel

 

While the debugfs command is running you will want to use the isdel command. This command forces Linux to create a list of all recently deleted files. The time it takes Linux to create a list of deleted files will vary depending upon how many files you have recently deleted.

 

Step Five: Recover

Once you have found the files you can undelete them by typing in the command dump (filename). This will restore your files.