DOC PREVIEW
WVU CS 110 - Unix General Utilities Examples 1

This preview shows page 1-2 out of 6 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

1) Who2) W.3) whoami4) Finger5) MAN6) LS & PWD1) WhoThe who command displays the username and other information about users currently logged onto the system. This information includes: user's name, terminal line, login time, elapsed time since activity occurred on the line, and the process-ID of the command interpreter (shell) for each current UNIX system user./home/hayhurst- whowoodyard pts/2 Aug 23 09:54 (ip-63-13.is.wvu.edu)adjeroh pts/3 Aug 15 01:02 (landofra.csee.wvu.edu)lbixia pts/4 Aug 22 13:17 (157.182.42.11)viars pts/5 Aug 22 11:56 (65.193.127.242)ji pts/10 Aug 23 08:35 (208.11.220.235)adjeroh pts/8 Aug 15 01:02 (boole)kerrigan pts/11 Aug 23 08:16 (157.182.72.218)hluo pts/13 Aug 23 08:36 (pppa41-resalemorgantown1-2r7491.dialinx.net)ksmani pts/14 Aug 23 10:17 (157.182.194.82)duan pts/15 Aug 23 10:05 (157.182.42.148)hluo pts/16 Aug 23 10:08 (157.182.224.72)selliah pts/18 Aug 23 09:15 (1cust6.tnt3.manassas.va.da.uu.net)zemerick pts/21 Aug 23 09:23 (157.182.194.237)hayhurst pts/22 Aug 23 09:45 (157.182.194.147)ram pts/23 Aug 23 10:09 (129.71.125.143)ip pts/35 Aug 22 15:22 (157.182.42.160)ji pts/41 Aug 22 09:57 (208.11.220.235)adjeroh pts/19 Aug 20 14:33 (boole)2) W.The W command is similar to who, but yields more information. The W command is part of the BSD compatibility package and may not be installed on everysystem. The information displayed by “w” includes the user name, terminal line, login date and time, idle time (time in minutes since the last key stroke, Next two columns tell how much processor time has been used.And the last column show what task the person is currently running./home/hayhurst- w 10:20am up 61 day(s), 23:07, 16 users, load average: 2.53, 2.55, 2.57User tty login@ idle JCPU PCPU whatwoodyard pts/2 9:54am 17 pine.bin -P /usr/local/lib/pine.adjeroh pts/3 15Aug01 3days 8:46 3:20 xbifflbixia pts/4 Wed 1pm 21:03 pine.bin -P /usr/local/lib/pine.viars pts/5 Wed11am 17:22 1 pine.bin -P /usr/local/lib/pine.ji pts/10 8:35am 1:45 pine.bin -P /usr/local/lib/pine.adjeroh pts/8 15Aug01 15:36 telnet naurkerrigan pts/11 8:16am 2:04 emacs main.htmlhluo pts/13 8:36am 1:15 pine.bin -P /usr/local/lib/pine.ksmani pts/14 10:17am 3 -tcshduan pts/15 10:05am 15 pine.bin -P /usr/local/lib/pine.selliah pts/18 9:15am 18 pine.bin -P /usr/local/lib/pine.zemerick pts/21 9:23am 15 6 -tcshhayhurst pts/22 9:45am 4 w3) whoamiThe this command displays information about your session. Whoami all as one work displays the username /home/hayhurst- whoamihayhurstWhile “Who am I” displays the username, terminal info,and login date & time for the current user./home/hayhurst- who am ihayhurst /dev/pts/11 Aug 23 10:434) FingerThe finger command allows you to display information for a specific user. It is also a great way to obtain the user ID (login name) for a person if you only know their name. You can user finger to locate people using either their first or last name, or directly by using their user id./home/hayhurst- finger camilleLogin name: hayhurst In real life: Camille A. HayhurstDirectory: /home/hayhurst Shell: /bin/tcshOn since Aug 23 09:45:29 on pts/22 from 157.182.194.147Mail last read Thu Aug 23 10:03:42 2001Plan:***********************************************************************Camille HayhurstOffice: 717 Engineering Sciences BuildingHome: Rt2 Box 167B, RivesvilePhone: (work) 293-0405 ext 2576 278-7331(home) (emergencies only please)**********************************************************************Class: Fall 2001 CS330 T-TH 5-615 CS604 T-TH 2-3:15Office Hours: (HECTIC, HECTIC, HECTIC) T-TH 9:30- 1:50, 3:30 - 4:50 Monday & Wednesday by appointmentFavorite Quote from CS 176 Student Spring 1999: During team efforts, a BIG MOUTH is a real advantage, sometimes it even out weighs true knowledge.When you finger someone, information about their full name and user id is displayed along with the contents of a “.plan” file. 5) MANHelp on unix commands can be obtained using the “man” utility. This displays help in 2 ways. 1) you can askfor the help page(S) for a specific command to be displayed. As in:/home/hayhurst- man lsReformatting page. Wait... doneNAME ls - list contents of directorySYNOPSIS /usr/bin/ls [ -aAbcCdfFgilLmnopqrRstux1 ] /usr/xpg4/bin/ls [ -aAbcCdfFgilLmnopqrRstux1 ] DESCRIPTION For each file that is a directory, ls lists the contents of the directory; for each file that is an ordinary file, ls repeats its name and any other information requested. The output is sorted alphabetically by default. When no argument is given, the current directory is listed. When several arguments are given, the arguments are first sorted appropriately, but file arguments appear before directories and their contents. There are three major listing formats. The default format for output directed to a terminal is multi-column with entries sorted down the columns. The -1 option allows single column output and -m enables stream output format. In order to determine output formats for the -C, -x, and -m options, ls uses an environment variable, COLUMNS, to determine the number of character positions available on one output line. If this variable is not set, the terminfo(4) database is used to determine the number of columns, based on the environment variable TERM. If this information cannot be obtained, 80 columns are assumed.There was too much information to copy sotry this on your own.You can also use man with the keyword option (-k) to lood for entries which reference directories./home/hayhurst- man -k directory/home/hayhurst/man/windex: No such file or directoryalphasort


View Full Document

WVU CS 110 - Unix General Utilities Examples 1

Download Unix General Utilities Examples 1
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Unix General Utilities Examples 1 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Unix General Utilities Examples 1 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?