LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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



Reply
 
Search this Thread
Old 10-23-2007, 07:21 PM   #1
jld9
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Rep: Reputation: 0
Question 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.
 
Old 10-23-2007, 07:39 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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 08:06 PM. Reason: [edit]
 
Old 10-23-2007, 08:16 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Quote:
Originally Posted by jld9 View Post
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 View Post
2. What command creates an empty file?
touch

Quote:
Originally Posted by jld9 View Post
3. How do you update the time stamp of a file without changing the contents?
touch
Quote:
Originally Posted by jld9 View Post
4. What command do you use to change the runlevels?
init or telinit
Quote:
Originally Posted by jld9 View Post
5. What command is used to view current runlevels?
runlevel

Quote:
Originally Posted by jld9 View Post
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 View Post
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 View Post
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 08:18 PM.
 
Old 10-23-2007, 08:23 PM   #4
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
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
 
Old 10-23-2007, 08:30 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Quote:
Originally Posted by dxqcanada View Post
Actually the "whoami" command will display your login name.
Actually
Code:
whoami
is distinct from
Code:
who am i
which will give you your tty as well ...


Cheers,
Tink
 
Old 10-23-2007, 08:34 PM   #6
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
I stand corrected.

The "who" command does display the runlevel and all users logged in on what TTY's.
 
Old 10-23-2007, 08:40 PM   #7
Trio3b
Member
 
Registered: Oct 2004
Location: Texas, USA
Distribution: MDV 2008.1, PCLinuxOS,
Posts: 315

Rep: Reputation: 30
Quote:
Originally Posted by Tinkster View Post
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 08:42 PM.
 
Old 10-23-2007, 08:45 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Well ... he assured me he's using this for home. ;}



Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux commands... MikeyI258 Linux - Newbie 1 06-22-2006 03:56 PM
Suse Linux Commands For These Aix Commands? Vaskar Guha Linux - Software 2 12-19-2005 01:45 AM
help with linux commands parvu83 Linux - General 3 12-10-2004 03:44 PM
commands in linux lucbosian Linux - Newbie 2 10-04-2004 06:05 PM


All times are GMT -5. The time now is 01:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration