LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

Slackware-13.1-Hacks-Wiping free space

Posted 01-02-2011 at 11:45 PM by arniekat

To eliminate the traces of old removed files, etc, you would want to wipe the empty space. The simple method is to use a standard Linux "dd" utility. In this example, suppose you want to wipe the free space on your hard drive for the /home partition. This will also work for any other partition, such as /tmp. You will only use ONE of the following commands depending on the type of data you want to use to fill up the empty space. The command is/are:

$ su
$ <Root_Password>...
LQ Newbie
Posted in Uncategorized
Views 703 Comments 0 arniekat is offline
Old

Something to do if you're REALLY bored...

Posted 01-02-2011 at 11:30 PM by MrCode
Updated 01-02-2011 at 11:40 PM by MrCode
Tags boredom

I've come up with a little something you can do with dd and SoX if you're really bored and can't think of anything else to do:

Code:
$ dd if=<whatever file here> of=<whatever output file here> bs=<1024/512>k skip=<# of MiB to skip through the file (or in increments of 0.5 MiB if you supplied 512k as the block size)> count=<MiB of content (or in increments of 0.5 MiB)>
$ play -q -t raw -s -b 16 -v 0.03125 -c 2 -r 48k <output file from dd>
...
Attached Files
File Type: txt isoechoexample1.oga.txt (159.2 KB, 7 views)
Member
Views 18271 Comments 8 MrCode is offline
Old

Slackware-13.1-Hacks-Emptying trash files

Posted 01-01-2011 at 11:10 PM by arniekat

These instructions are for deleting files that will not go away when you empty the trash using the icon on your desktop.

The trash files are kept in /home/<user_name>/.local/share/Trash/files

$ su
$ <Root_Password>

# cd /home/<user_name>/.local/share/Trash/files
# rm -rf /home/<user_name>/.local/share/Trash/files/files_that_wont_go_away
LQ Newbie
Posted in Uncategorized
Views 1479 Comments 1 arniekat is offline
Old

Slackware-13.1-Hacks-Changing System Time

Posted 01-01-2011 at 10:39 PM by arniekat

This will adjust your system time and correct it using a Stratum 2 Time Server. The quickest way to change your system time is to do the following:

$ su

$ <Root_Password>

# ntpdate pool.ntp.org

You should see confirmation that it worked. The second way of doing this (in case the first way did not work) is to get the IPV4 address or hostname of a Local (meaning in your time zone) Stratum 2 Time Server from the following website:...
LQ Newbie
Posted in Uncategorized
Views 1144 Comments 1 arniekat is offline
Old

Slackware-13.1-Hacks-Mount ISO Image

Posted 01-01-2011 at 10:18 PM by arniekat

Suppose you have an ISO Image of a CD/DVD and you want/need to get some information off the disc image. You can mount it as a filesystem and use your file browser to see its contents.

Create a directory to mount the ISO Image:

$ su
$ <Root_Password>
# mkdir -p /mnt/disk

Now mount the *.iso file system to the mount point:

# mount -o loop /<Path_To_ISO_Image>/<Name_of_ISO>.iso /mnt/disk
# cd /mnt/disk...
LQ Newbie
Posted in Uncategorized
Views 12554 Comments 4 arniekat is offline

  



All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration