Keep up with VYL's Updates

10.17.2007

Fundamentals rm,cp,mv to Advanced

In order to manipulate the cool (mdesg, modprobe, cat /etc/fstab) commands you must have the basic, most fundamental (the "boring":) file manipulation commands down pat. You use all the boring commands to manipulate files and dirs with the more advanced "cool" commands, so I've taken the time to lay some fundamental understanding of essential shell commands. This may seem slow, boring, and obvious, but I can't tell you how encouraging it is to be tweaking some advanced system root file and then feel "at home" with some essential commands. For example, you could be tweak /etc/fstab and be fiddling with obscure device ids you know nothing about and then then suddenly realize, "Hey, I can just COPY the file" and then whip out the reliable, trusty old cp command. You'll never learn the new exciting stuff untill you feel "at home" with atleast a few of the most fundamental commands.

These commands in GNU/Linux/Ubuntu (as well as most all other unix-like OS) offer a tremendously refreshing degree of simplicity in regards to working with files in the shell (with the case of Ubuntu, the awesome BASH shell). In other shells (like DOS) or guis you typically need the following fundamental commands to manipulate the essentials of files:

copy files
move files
rename files
delete files
delete directories

BASH (and Ubuntu), therefore, can do all the above with only the following commands

cp -- copy files
mv -- move files, rename files
rm -- delete files, delete directories

See the simplicity! Half the number of commands, same amount of accessible operations!

Specifically, here are the ways to manipulate files with the above three commands

copy files -- cp // results = 2+ filename // -r copies entire directory and sub-dir contents
move files -- mv // results = 1+ filename // -r moves entire directory and sub-dir contents
rename files -- mv // results = 2+ files //
delete files -- rm // result = 0 filename // -f delete without confirmation
delete dirs -- rm -r //results 0 directoryname // -f delete without confirmation

So, know understanding and have practiced with (ahem) these three commands (cp, mv, and rm) and their 5 specific implementations (copy, move, rename, delete files, delete dirs) you can build from this fundamental understanding to comprehend more advanced shell commands.

The theory here is the same "method" you used to understand these (boring) fundamental commands will be the same method to learn the more advanced fun commands. So the purpose with these three commands is not so much to learn the commands (although you must do that), but rather to acquaint yourself with how you learn new commands, so that adapting to and picking up more advanced commands will seem familiar!




Mounting File Systems Recipe
Ingredients for Mounting File Systems
vol_id -u /dev/devicename
gedit /etc/fstab
mount
umount
sudo mkdir /media/mountpointname



Sound Tweaking Systems Recipe
Ingredients
lspci -v
aplay -l
alsamixer
sudo gedit etc/modprobe.d/alsa-base
cat /proc/asound/card0/codec\#* -- codec informaiton and address


My info:
Codec: SigmaTel STAC9200

Default system beek Works. Only with
these parameteres

Panel Sound says "No Volume control Gstreamer plugins found"

alsamixer, aplay do not work

Sound control panel
playback: STAC92xx Analog (not connected)
playback music:STAC92xx (Not Connectioned)
audio confere playback: Autodetect
audi Capture: ALSA
Device: No options
No options

No comments:

Mailing List



Validate%20Your%20Life
Quantcast