Posted: . At: 7:20 PM. This was 11 years ago. Post ID: 5414
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.

Some more useful Linux commands for the bash shell.

How to create an ISO image of a DVD or CDR disk easily with the command-line.

dd if=/dev/sr0 of=/home/$LOGNAME/mydisk.iso bs=2k

This will rip a copy of the disk to the hard drive.

To write this image to a blank DVD disk; use this command.

sudo wodim -dev=/dev/sr0 -speed=8 -eject -v mydisk.iso

To change all instances of a word in a textfile; you may use VIM.

  1 The real point of overclocking your CPU is to obviously gain speed and make a world record, especially if you are using liquid nitrogen and then the liquid Helium to cool to extremely cold temperatures. If you ran the computer on the surface of the Saturnian moon Titan you would get even better cooling, but that will not be a possibility for a long time yet.
  2
  3
~
~
~
:s/point/real point/                                                                                                         1,1           All

This example above is using a simple regex to translate the word “point” in a text snippet and change it to “real point”. Just press ESC to get into command mode and then type this command to change your text file.

Press the “u” key in VIM command mode to undo the change if you wish.

The command below is one I found on this web page. This will remove all junk characters from a text file and only leave the content that you actually want to keep.

[ john@3.2.0-4-rt-686-pae ]
[ Jobs 0.PWD: ~/Documents.bash 4.2.36. ] [ 12 ]
[ 00:04:51 ]
[ $ ]-> tr -cd '\11\12\15\40-\176' < junkdocument.txt > cleaned-document.txt

To get a tree listing of all files that are in a certain folder; use this command. This is just like the MSDOS tree command.

Homer@bejiitas $ tree
.
|-- blog.txt
|-- my
|-- my.c
|-- my3.txt
`-- sysinfo.kdevelop-1.0
    |-- COPYING
    |-- Doxyfile
    |-- Makefile
    |-- obj
    |-- README
    |-- src
    |   |-- strings.h
    |   |-- sysinfo.cpp
    |   `-- sysinfo.h
    |-- sysinfo.tag
    `-- sysinfokdevelop.kdevelop
 
3 directories, 13 files

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.