Sponsored Content
Full Discussion: Unix study help
Top Forums UNIX for Dummies Questions & Answers Unix study help Post 302300099 by Heyo on Monday 23rd of March 2009 08:17:00 AM
Old 03-23-2009
Unix study help

Hi, I need some help with the follow questions Smilie. Any help would be great!

Answer with the necessary commands

1. In your login directory, make a directory called week4/revision

2. Without changing directories, make another directory week4_revision/data

3. Change to week4_revision/data in one command

4. Copy your own .bash_profile to week4_revision/data as a file called my_profiles using relative paths. [Remember you are now in /student/sxxxxx/week_revistion/data]

5. Copy the password file from /etc to week4_revision/data using absolute paths

6. Without changing directory, make a file called rev4.txt in your login directory. [Remember you are now in /student/sxxxxx/week_revision/data]

7. Whilist in week4_revision/data make another directory called bin

8. Add this directory to your PATH variable such that is will still be valid when you next login, then force shell to acknowledge this change for this session

9. How can you tell that the shell has observed the change?

10. Which command will allow you to see the attributes of your current and parent directory and what is the command you issued?

11. Apart from vi, which other commands (there are at least 2) will allow you to see the contents of .bash_profile

12. How many ways can you think of to return to your login directory? What are they?

13. Return to your home directory using the most efficient command

14. Which command will remove the directory week4_revision (do not remove it though) ? [There are still files in this directory].

15. Change week4_revision to week4_revision.old

16. Will this affect your path statement? If so, how?

17. Which meta characters are valid with the ls command?

18. What does ls -alt do?

19. Which command will make four directories da db dc dd in one command?

20. Which command will remove only the three directories da db dc in one command but only using one argument?

Thanks for your help, I have a test coming up and I am behind so the answers will help me study!

Thanks!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

I want to start study Unix!

hello .. I am college student and a new guy to unix. I have a simple question: what does "unix" stand for ,or just a meaningless name ? (4 Replies)
Discussion started by: nanuo
4 Replies

2. UNIX for Dummies Questions & Answers

i want to study unix,but it is very dificult.

14 (2 Replies)
Discussion started by: zbweh5280
2 Replies

3. UNIX for Dummies Questions & Answers

help for unix study

hi I am vijay how r the unix gurus? I want to install unix for our sites.So pls tell me abt unix installation user guide & also all the unix commands.Pls help me.I am waiting for yr reply. bye..........vijay :D (2 Replies)
Discussion started by: vi77_surat
2 Replies

4. Programming

Good Unix Online Study Material

HI Friends, I wanted to start this thread inorder to keep all the Unix starters to easily find useful material through this thread...I request you all to provide with the URL address of any gud material you know... thanks and regards... (2 Replies)
Discussion started by: rahul3894singh
2 Replies

5. UNIX for Dummies Questions & Answers

Any study material for begineers for UNIX please??

Any study material for begineers for UNIX please?? (2 Replies)
Discussion started by: niranjany
2 Replies

6. What is on Your Mind?

UNIX Admin (Papers and study material)

Hi, I want to prepare and then appear for Unix admin certification. Please guide me for the study material and Exams that are required to be taken for UNIX certifcation. Thanks in advance. (11 Replies)
Discussion started by: raman1605
11 Replies

7. Programming

UNIX- -Case study - Library management.

Hi.. I am a new joinee to this foram.I need to submit a case study in UNIX .Please help me to submit the case study by giving your valuable ideas.It will be very helpful for me. Topic: Unix File Management A university wants to computerize its Library operations because of... (2 Replies)
Discussion started by: viji_jeya
2 Replies

8. UNIX for Dummies Questions & Answers

UNIX Study Material

Hi , Can anyone suggest me any UNIX Study material and UNIX Certification specific for TELECOM-DOMAIN. Best Regards, Om Prakash. (14 Replies)
Discussion started by: omprakash1986
14 Replies

9. Shell Programming and Scripting

New to UNIX like 2 weeks of study only

why does this not work, confused #!/bin/ksh x="x" echo "Enter a name: " read NAME while do echo $NAME echo if then echo ":" else echo $NAME fi echo echo "Enter a Name: " read NAME (8 Replies)
Discussion started by: Gmoney93079
8 Replies

10. SCO

Study UNIX Kernel

Hi all, I hope you are fine, I'd like study Os I tried a book like Silberschatz it's a good book but like other books it talks about the concepts abstractly and that's due to it try to encompass many concepts from many operating systems in GENERAL. i am not too much comfortable from these... (20 Replies)
Discussion started by: Abdo_8008
20 Replies
lusermod(8)						      System Manager's Manual						       lusermod(8)

NAME
lusermod - Modify an user SYNOPSIS
lusermod [OPTION]... user DESCRIPTION
Modifies the user with name user. OPTIONS
-c, --gecos=gecos Set user's GECOS field to gecos. The GECOS field is traditionally used to store user's real name and other information. -d, --directory=directory Set user's home directory to directory. -g, --gid=gid Change user's primary group ID to gid. If group with ID gid does not exist, a warning is printed, but the operation is performed anyway. -i, --interactive Ask all questions when connecting to the user database, even if default answers are set up in libuser configuration. -L, --lock Lock user's account. This prevents logging in using user's password. -l, --login=name Rename user to name. -m, --movedirectory After changing user's home directory (using the -d option), move the old home directory to the new location. -P, --plainpassword=password Set user's password to password. Note that the password can be viewed while running lusermod using tools such as ps(1). -p, --password=encrypted Set user's password to the password represented by the hash encrypted. Note that the hash can be viewed while running lusermod using tools such as ps(1). -s, --shell=shell Set user's login shell to shell. -U, --unlock Unlock user's account. -u, --uid=uid Change user's user ID to uid. EXIT STATUS
The exit status is 0 on success, nonzero on error. libuser Feb 27 2008 lusermod(8)
All times are GMT -4. The time now is 09:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy