Linux user location/directoires


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Linux user location/directoires
# 1  
Old 11-08-2012
Question [Solved] Linux user location/directoires

Hi,
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 using vi I created the 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.

Thanks in advance.
Smilie
# 2  
Old 11-09-2012
One way:
Code:
# mkdir -p /home/projects/user1/usrdir

# 3  
Old 11-09-2012
Thanks

Thanks for your input, and sorry if the question got confusing when I typed vi by mistake.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Where is the best location to deploy an application on Tomcat over Linux?

Hi, I'm trying to figure out the best location to deploy an application on Tomcat over Linux server. The application structure is as follows: 1. WAR - the app itself. 2. conf - configuration files that are part of the product, not to be changed in deployment 3. local_conf - overriding... (0 Replies)
Discussion started by: moshebs
0 Replies

2. Post Here to Contact Site Administrators and Moderators

How to count successfully copy files source to target location with check directory in Linux?

Hi guys...please any one help me .... how to copy files from source to target location if 5 files copied successfully out of 10 files then implement success=10 and if remaining 5 files not copied successfully then count error=5 how to implement this condition with in loop i need code linux... (0 Replies)
Discussion started by: sravanreddy
0 Replies

3. SuSE

Location and name of SYSLOG in SUSE Linux

Esteemed listers, Where is the location of SYSLOG file? In etc/auditd.conf script, the log_file location is '/var/log/audit/audit.log' as below. Is this the location where SYSLOG is stored? Thank you in advance, log_file = /var/log/audit/audit.log log_format = RAW... (3 Replies)
Discussion started by: JDBA
3 Replies

4. Linux

Get all the files from a FTP location with previous week's dates in the file names using Linux

I have a weird requirement where I have to get the files from a FTP(Lets say FTP1) location and place it on my current FTP(Lets say FTP2) location. The issue is, these are daily files (in a pattern Sales_YYYYMMDD_report.csv) and are placed every day on FTP1 and my process usually runs on Monday(eg.... (2 Replies)
Discussion started by: dhruuv369
2 Replies

5. Shell Programming and Scripting

Help with copying the list of files from one location to other location

A) I would like to achive following actions using shell script. can someone help me with writing the shell script 1) Go to some dir ( say /xyz/logs ) and then perform find operation in this dir and list of subdir using find . -name "*" -print | xargs grep -li 1367A49001CP0162 >... (1 Reply)
Discussion started by: GG2
1 Replies

6. Shell Programming and Scripting

How to find a existing file location and directory location in Solaris box?

Hi This is my third past and very impressed with previous post replies Hoping the same for below query How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies

7. Shell Programming and Scripting

Copying files from windows shared location to linux box

Hi, i am new to shell scripting. i have a requirement to copy the files from a windows shared location( vendor will place the files here) to Linux server( my Informatica will pick the files from this location). Files should be loaded in the order in which they were placed in windows box.(Based on... (1 Reply)
Discussion started by: Haari
1 Replies

8. Shell Programming and Scripting

File created in a different location instead of desired location on using crontab

Hi, I am logging to a linux server through a user "user1" in /home directory. There is a script in a directory in 'root' for which all permissions are available including the directory. This script when executed creates a file in the directory. When the script is added to crontab, on... (1 Reply)
Discussion started by: archana.n
1 Replies

9. Shell Programming and Scripting

Shell Script for Copy files from one location to another location

Create a script that copies files from one specified directory to another specified directory, in the order they were created in the original directory between specified times. Copy the files at a specified interval. (2 Replies)
Discussion started by: allways4u21
2 Replies

10. AIX

User script folder standard location ?

I am starting to accumulate a few scripts that I working on to replace operational scripts and to have a few for my personal usage. I am not an admin, just an operator. They are currently located inside the /tmp folder. I know they should not be there but since we have no system admin (someone... (4 Replies)
Discussion started by: Browser_ice
4 Replies
Login or Register to Ask a Question