Some Linux tips for Gerry

Hack your OS, customize your GUI, announce great software, and configure, configure, configure...
Post Reply
SOD
BIG GIANT HEAD I Get Free Beer
BIG GIANT HEAD I Get Free Beer
Posts: 5284
Joined: 12/06/01, 12:00 am
Location: here and there

Post by SOD » 01/04/02, 9:30 am

#############################
# BASH shell commands #
#############################
"Education is not the filling of a pail, but the lighting of a
fire." - William Butler Yeats
SOD@ffungi.com
Glad to see your venturing beyond M$
heres a couple of commands that might help...
If you have any specific questions just email me.
I'm not a guru and no, i don't play one on TV. But i'll be glad to resource the question.
cd --PATH=change directory
cp --FILE PATH=copyfile
mv --OLDFILENAME NEWFILENAME=change file name
mv --FILE PATH=move file
rm --File PATH=Delete File
ls --list files in current directory
ls -al --list files with detail
ls PATH --list files in PATH directory
man --APPLICATION NAME=call the manual for that app
APPLICATION NAME --help= usually lists commands and syntax for the app
startx =launches XWindows
shutdown -h(alt) now=system shutdown OR
just type "poweroff"
useradd USERNAME -m =add user and create user dir in Home dir.
userdel -r USERNAME =remove user
this is a sidebar but a USER creates hidden files for each user and remember applications can also be users. It can be very benificial to set a seperate user for an internet app like Wget
passwd USER=modifies user password
(it will yell at you if you pick a dictionary word hehehe)
A rule of thumb-DO NOT RUN IN ROOT
very easy to destroy the integrity of file structure. Certain actions must be done in 'root' use with extreme caution!
BTW I have a book. A HUGE book please feel free to ask anymore questions you want. I'm going to outline a study guide and see if i can't bring this text to a manageable size.... Where I can start to put togather a KB for the desktop.
Have Fun!


<font class=editedby>[ This Message was edited by: SOD on 2002-01-04 17:34 ]</font>

<font class=editedby>[ This Message was edited by: SOD on 2002-01-04 17:45 ]</font>

AndrewB
BIG GIANT HEAD I Get Free Beer
BIG GIANT HEAD I Get Free Beer
Posts: 2385
Joined: 12/09/01, 12:00 am
Location: USA
Contact:

Post by AndrewB » 01/04/02, 6:07 pm

Nice. If anyone's interested, the LDP has a very nice tweak guide over here:
<a href="http://www.linuxdoc.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/index.html">click this link!</a>

I got about 3-3.5 years linux experience, so i can help w/ a lot. if anyone here's got more, i want to learn from the master! <IMG SRC="/phpBB/images/smiles/icon_biggrin.gif">

Gerry
BIG GIANT HEAD I Get Free Beer
BIG GIANT HEAD I Get Free Beer
Posts: 5727
Joined: 12/04/01, 12:00 am
Location: Perth, Western Australia
Contact:

Post by Gerry » 01/04/02, 6:31 pm

Thank you so much!! These ones should really help me as I didn't already know them:

+ man --APPLICATION NAME=call the manual for that app
+ APPLICATION NAME --help= usually lists commands and syntax for the app
+ I knew about "reboot" but not "poweroff"
+ Do you have to ad the "-m" to "useradd USERNAME -m", I have not been using the "-m" part?
+ userdel -r USERNAME, I was wondering about this, thanx.
+ (it will yell at you if you pick a dictionary word hehehe) Yeah my dad found this out the hard way, he was trying to use a three character word as a pw. Shocking, I know!
+ DO NOT RUN IN ROOT, I knew that but it doesn't hurt to hear it again.


and now for some very newbie questions:

In X Windows (Redhat Linux) how do you access the properties dialogue for a window after you have disabled the title bar?

I have heard there is a way to access your windows files (I have both win98 and Linux on the same machine) from Linux. Do you know how and if possible, how to do it from X Windows?

That's all I can think of for now, thanx heaps and don't worry if you can't answer my questions, I probally asked them wrong and didn't make any sense.
I answer rhetorical questions for my own enjoyment.

Guest

Post by Guest » 01/04/02, 7:23 pm

As for your X question, it depends on which VWM you're using. X is only the underlying GUI structure for a VWM (virtual window manager), which is the windows, menus, taskbars, etc that you see and use on your screen. knowing that this is red hat, are you using GNOME or KDE?

About accessing windows files: Yes, accessing FAT32 partitions is very easy and NTFS is possible but somewhat difficult and dangerous considering that M$ wont allow the exact info on their FS to be released..... anway, find out what partition your windows files are on and do the following (my system is Win2k and Linux Mandrake 8.1):

mount /mnt/windows

To unmount it, you do umount /mnt/windows

NOTE: the default FAT32 windows mount in Mandrake is /mnt/windows- it may not be the same on Red Hat! to check this, run... i cant remember. I'm going to boot into 'nix in a few minutes and i'll post the name of the utility here.

Gerry
BIG GIANT HEAD I Get Free Beer
BIG GIANT HEAD I Get Free Beer
Posts: 5727
Joined: 12/04/01, 12:00 am
Location: Perth, Western Australia
Contact:

Post by Gerry » 01/04/02, 8:12 pm

Thanx, and I'm using GNOME, sorry I'm still getting used to it all.

Actually that made me think of another question if it's not too much trouble. How do you change between GNOME and KDE when booting X Windows?

<font class=editedby>[ This Message was edited by: Gerry on 2002-01-05 04:16 ]</font>

SOD
BIG GIANT HEAD I Get Free Beer
BIG GIANT HEAD I Get Free Beer
Posts: 5284
Joined: 12/06/01, 12:00 am
Location: here and there

Post by SOD » 01/05/02, 4:24 am

As you have already surmised BASH is the default shell...If you have both desktops installed then go to:
$ /home/$user/.Xclients-default (a hidden file created by the RedHat Desktop switcher) and edit line - 'exec #desktop# session' or just go to the desktop switcher in the GUI. I have noticed some things are more stable if did from the GUI....I confess though i'm already BASH addicted got some cool files that are terminal frontends for command line apps.
WOW the file system information for windows users is cool (go figure) thanks anon. About interoperabilty Gerry....are you aware of the applications Samba and Wine? They are in your computer. for grins check this out stick a audio CD in your drive get a terminal and type $ 'cdp' he he its a cd player with options at the term cool....

<font class=editedby>[ This Message was edited by: SOD on 2002-01-05 12:29 ]</font>

SOD
BIG GIANT HEAD I Get Free Beer
BIG GIANT HEAD I Get Free Beer
Posts: 5284
Joined: 12/06/01, 12:00 am
Location: here and there

Post by SOD » 01/05/02, 5:53 am

Holy crap forgot about this link...This guys work is posted all over the internet NOTE if you find a more recent version please post the link here <A Href="http://www.redmondlinux.com/Bash_Info/HTML/"><U>http://www.redmondlinux.com/Bash_Info/HTML/</U></A>

Gerry
BIG GIANT HEAD I Get Free Beer
BIG GIANT HEAD I Get Free Beer
Posts: 5727
Joined: 12/04/01, 12:00 am
Location: Perth, Western Australia
Contact:

Post by Gerry » 01/05/02, 5:59 am

Haven't heard of Samba b4, but isn't Wine a windows emulator?

Gonna go check ot that cd thingy, thanx u guys 4 all your help!

Also Anon, please let us know as soon as u find out out the name of the utility that will tell me what the default FAT32 windows mount is, thanx <IMG SRC="/phpBB/images/smiles/icon_smile.gif">

Finally if anyone knows the answer to my previous question please let me know:

"In X Windows (Redhat Linux - GNOME) how do you access the properties dialogue for a window after you have disabled the title bar?"
I answer rhetorical questions for my own enjoyment.

Post Reply