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.
I need to create a user. I know it sounds simple but I'm having a slight issue with it. For example I want to create user1 with home location of /home/projects/user1. I went ahead and created the projects directory using mkdir under /home, and also user1 directory under /projects, but whenever I use the ls -l command to check the structure, the user1 shows under home and nothing under /home. I'm not sure What I'm doing wrong.
Also if I wanted to create a directory under user1, should I simply type: mkdir /home/projects/user1/usrdir ??? Is there a better or simpler way?
I still a newbie, so please if anyone could point me at the right direction, I would really appreciate it.
Distribution: Slint64-14.2beta2 on Lenovo Thinkpad W520
Let's say you begin with only the /home directory and didn't yet create /home/projects nor its sub-directories
Let me quote "man mkdir":
mkdir - make directories
SYNOPSISmkdir [OPTION]... DIRECTORY...
Create the DIRECTORY(ies), if they do not already exist.
Mandatory arguments to long options are mandatory for short options too.
set file mode (as in chmod), not a=rwx - umask
no error if existing, make parent directories as needed
So I would simply type:
mkdir -p /home/projects/user1/usrdir
It would help if you say which distribution you use as some provide specific commands that can be handy.
Sorry for the typo, I had vi in my mind at the time I typed the question. I think I figured out most of it. in fedora linux, whenever you create a new user, it by default puts it under the /home directory. Everything made sense after that. Thanks guys for your input. I appreciate it.