Linux - Newbie This 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! |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-23-2007, 06:21 PM
|
#1
|
LQ Newbie
Registered: Oct 2007
Posts: 7
Rep:
|
help with linux commands
I am extremely new to linux and have a bunch of question to get me started in the right direction.
1. Which command shows which terminal you are currently viewing?
2. What command creates an empty file?
3. How do you update the time stamp of a file without changing the contents?
4. What command do you use to change the runlevels?
5. What command is used to view current runlevels?
6. I am having trouble finding which section of the manual that list commands that only the root can execute. Any Suggestions?
7. I keep seeing a couple of files on this that I don't know what they are the first one is /us/bin/passwd and also /etc/passwd. What the heck are these?
8. I do I rename a file?
9.
|
|
|
10-23-2007, 06:39 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Hi, and welcome to LQ!
[edit]
The OP assures me in a private e-Mail that this is NOT
homework ... thread re-opened
[/edit]
Cheers,
Tink
Last edited by Tinkster; 10-23-2007 at 07:06 PM.
Reason: [edit]
|
|
|
10-23-2007, 07:16 PM
|
#3
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
Originally Posted by jld9
I am extremely new to linux and have a bunch of question to get me started in the right direction.
1. Which command shows which terminal you are currently viewing?
|
who am I
Quote:
Originally Posted by jld9
2. What command creates an empty file?
|
touch
Quote:
Originally Posted by jld9
3. How do you update the time stamp of a file without changing the contents?
|
touch
Quote:
Originally Posted by jld9
4. What command do you use to change the runlevels?
|
init or telinit
Quote:
Originally Posted by jld9
5. What command is used to view current runlevels?
|
runlevel
Quote:
Originally Posted by jld9
6. I am having trouble finding which section of the manual that list commands that only the root can execute. Any Suggestions?
|
section 8
Quote:
Originally Posted by jld9
7. I keep seeing a couple of files on this that I don't know what they are the first one is /us/bin/passwd and also /etc/passwd. What the heck are these?
|
the first is the executable that lets you change a password,
the second is a file that holds your account information
Quote:
Originally Posted by jld9
8. I do I rename a file?
|
mv
And this still smacks of homework :D If you were as new
as you say you are you wouldn't know what to ask for in
respect to the stuff you're asking for (e.g. the term
runlevel or section of man would never occur to you).
Cheers,
Tink
Last edited by Tinkster; 10-23-2007 at 07:18 PM.
|
|
|
10-23-2007, 07:23 PM
|
#4
|
Member
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702
Rep:
|
Actually the "whoami" command will display your login name.
"tty" will display the TTY device name you are currently attached to.
FYI: "whatis" and "man" are great tools
|
|
|
10-23-2007, 07:30 PM
|
#5
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Quote:
Originally Posted by dxqcanada
Actually the "whoami" command will display your login name.
|
Actually
is distinct from which will give you your tty as well ...
Cheers,
Tink
|
|
|
10-23-2007, 07:34 PM
|
#6
|
Member
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702
Rep:
|
I stand corrected.
The "who" command does display the runlevel and all users logged in on what TTY's.
|
|
|
10-23-2007, 07:40 PM
|
#7
|
Member
Registered: Oct 2004
Location: Texas, USA
Distribution: MDV 2008.1, PCLinuxOS,
Posts: 315
Rep:
|
Quote:
Originally Posted by Tinkster
who am I
And this still smacks of homework  If you were as new
as you say you are you wouldn't know what to ask for in
respect to the stuff you're asking for (e.g. the term
runlevel or section of man would never occur to you).
Cheers,
Tink
|
Sorry, had to chuckle........ how very true. I've been tinkering for two years now and would not have thought to ask about some of these. Good eye Tink... but now you're contributing to delinquency.. 
Last edited by Trio3b; 10-23-2007 at 07:42 PM.
|
|
|
10-23-2007, 07:45 PM
|
#8
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Well ... he assured me he's using this for home. ;}
Cheers,
Tink
|
|
|
All times are GMT -5. The time now is 02:56 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|