LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-18-2006, 06:19 PM   #1
robinp
LQ Newbie
 
Registered: Feb 2006
Location: Port Moresby Papua New Guinea
Distribution: RedHat & fedora
Posts: 17
Blog Entries: 1

Rep: Reputation: 0
Question Linux command help


could anyone help me find the correct linux command that will list the current username/loginname,tty, date/time, hostname/ip address of the source, on production system on RHLE 4 AS and login from from Windows and Linux RH9 and FC4 client workstations.


Regards..


Robs
 
Old 04-18-2006, 06:22 PM   #2
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
For the record, you're looking at a number of commands there. uname, date, et cetera, just to name a few.
 
Old 04-18-2006, 07:09 PM   #3
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by robinp
could anyone help me find the correct linux command that will list the current username/loginname,tty, date/time, hostname/ip address of the source, on production system on RHLE 4 AS and login from from Windows and Linux RH9 and FC4 client workstations.
Is this for real? Probably a homework assignment, more like it. But even if it might conceivably be a homework assignment (these questions are forbidden here), it's just too funny to not give you a little nudge in the right direction.

To find the date, you type ... tada! "date"

To find the tty, you type ... tada! <fill_in_the_blank>

Figuring out what to type to get the hostname (hint, hint) will be left as an exercise for the reader. If you don't know who you are, you can bet the computer does. Why not just ask?

---

A better answer to all this would be:

(1) cd /bin; ls
(2) cd /usr/bin; ls

Just see what's there. Then run "man" on things that look interesting. For example, to find out what the "date" command does, type "man date".
 
Old 04-18-2006, 11:17 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by haertig
Is this for real? Probably a homework assignment, more like it.
Doesn't fit the pattern of a homework troll....
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
linux command neerajchaudhari Linux - Newbie 1 09-09-2005 02:59 AM
Require Linux/Perl equivalent command for windows Command alix123 Programming 7 08-19-2005 02:23 AM
unix command to linux command leonidas Linux - General 1 09-10-2004 12:40 AM
Linux Command Haroon Linux - General 3 09-07-2004 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:05 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
Open Source Consulting | Domain Registration