Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
OK, I need a way to tell a script to look in /dev/sdb
but the script is in /home/bz/Documents
so, can I put a symlink /dev/sdb in Documents?
Or, how would I tell the script to go UP folders, instead of down?
OK, so if I was hanging out in /home/bz/Documents, and my script is there too; But sdb
is in /dev/sdb, then it would be ../dev/sdb or what?
'Cause it's gotta go up to /, then down into /dev/sdb. right?
I'm in /home/bz/Documents and gotta get the script to squirrel up into /dev/sdb
The path in the symlink can either be an absolute path or a relative one. If it's a relative path, then it is relative to the directory in which the link is located, i.e. you would want ../../../dev/sdb (as ../dev/sdb would point to /home/bz/Documents/../dev/sdb/ which is /home/bz/dev/sdb).
To create a symlink with an absolute path, you can use:
cd /home/bz/Documents/; ln -s /dev/sdb filename
To create one with a relative path, you need to omit the leading slash in the target path:
cd /home/bz/Documents/; ln -s ../../../dev/sdb filename
OK, but there is no filename after /dev/sdb
I am using a script so that when I run portable-qemu I have access to my real usb
it works, but only if I am in /, and the script/qemu folder is in / also.
Qemu must mount a real drive as hdx/sdx not by partition.
it is experimental, yet works.
note, I am not talking about qemu installed in your system, but my portable-qemu,
which is a adaptation of dsl-embedded/billix/qemu-puppy
it runs on Dindows and Linux thru scripts .bat and .sh
i usuually work in /home/bz/Documents or in Desktop so that's why I want the script
to find /dev/whatever or whatever else
I also want to figure how to run the script from usb and be able to have access to
the hd, which is probably simple too.
i have tinycore on ext3 usb, and booted off a tinycore iso I made which has minimal apps so it runs in qemu faster.
ok, so on usb I have alot of tinycore apps.
So, when I booted portable-qemu, running tc 2.0, it started
restoring the apps from the USB!
on the cd I did'nt specify where to find the apps, so it auto searches, like dsl, and found the tce folder on symlinked usb instead of the minimal apps on cd!
wow, that's cool. so now I have access to a hd/usb/cdrom, etc from portable qemu, wihout ever having to reboot pc, snd it works on Dindows and Linux too.
A potent hacking tool in the wrong hands ay?
note that hda is a unformatted unpartitioned qemu-img
# $Id: invoke Portable-Qemu, boots Portable-Linux (Some)
# playing on Qemu root Exp root $
# To have the ability to play Portable-Linux on Portable-Qemu
# From USB, within another Virtual system, and/or out
# of the folder on your Desktop, on Windows(.bat) or Linux(.sh)!
# $%& <firstname.lastname@example.org> 06/19/09
qemu/qemu -L qemu/ qemu/kvm -no-kqemu -soundhw all -localtime -m 350 -boot d -cdrom grub2.iso -hda qemu/HDA -hdb dev/dev/sdb &