Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am assuming I am calling the console by the correct name. ??
I am trying to learn as many commands as I can...however, I notice that almost no dos commands work at all... what is a good site to learn some basic linux commands? I have been searching the web and cant seem to find anything like that at all...
seeing as there are so many, and they can change depending on what all you selected to install, the best place to look is in /bin/ /sbin/ /usr/sbin/ /usr/bin/ and just sit back ls each dir, and then start man commandname and see what it does.
ls means list, as in dir for dos/windows
man means manual, you will hear man pages a lot, meaning basically check the manual.
go here basic commands this is a list of the basic commands, along with there man pages for each, so you can get a general idea of what does what, and how to do it, before diving in with ls, and man.
man stands for manual pages.. if you type man command name, it will show you the manual pages of that command..
/bin is where most commands are found
/etc is mainly for configuration files for your system
/root is your root home directory, like /home for regular users.
Do a search on "man pages" and it will bring up many sites that have links to pages containing commands and man pages for them.
/ - this is the "root" directory. It's the highest directory level
/bin - Holds important system binaries: ls, cp, mount, etc
/boot - contains files that are used to boot
/dev - contains all the devices that allows communication to the hardware
/etc - contains system configuration files
/home - contains the users' home directories
/lib - has various important system libraries
/mnt - holds the mount points of various drives and paritions (ie /mnt/floppy is like a: in dos)
/opt - I have no idea. Must not be too important
/proc - Holds information from the kernel about the system
/root - This is root's (the superuser) home directory
/sbin - Holds important system binaries that should only be used by root: checking filesystems, shutting down, etc
/tmp - Temporary storage space
/usr - Has a structure much like / but is for user level programs
/var - contains system logs, mail, printer spools, and so on
Originally posted by TacKat The directory tree goes something like this:
That was nifty,
Chijtska,
You might want to pick up O'Reilly's Linux in a Nutshell. Between that book and the man pages, I really have never needed another reference for anything command line oriented.
At CompUSA I found a good book that was very cheap... One of those learn linux in 24 hr type deals...
1 question tho....
how do you remove a directory when that directory has a number of files and/or directories in them? i have tried rm, rd, and rmdir but none of those will work....
The r stands for recursive. Check the man page on rm for other options. If you don't want to be asked about removing every file, use "rm -rf" but BE VERY CAREFUL, especially if you are doing that as root. One typo could wipe your whole filesystem.
yeah.. if you accidently typed rm -r / somedirectory, that would wipe out your / directory in which everything is under. notice the space after / and somedirectory... that is why you would want to be careful... and it should look like this rm -r /somedirectory if you wanted to just delete somedirectory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.