Shared Flashcard Set

Details

Solaris 10 Essentials
Sun Certified Solaris Associate (SCSAS) SCWS-1000-S10
50
Computer Science
Not Applicable
12/06/2009

Additional Computer Science Flashcards

 


 

Cards

Term
Lists all jobs that are currently running or are stopped in the background
Definition
jobs
Term
Runs the current or specified job in the background (n is the job ID)
Definition
bg %n
Term
Brings the current or specified job into the foreground (n is the job ID)
Definition
fg %n
Term
Stops the foreground job and places it in the background as a stopped job
Definition
Control-Z
Term
Stops a job that is running in the background (n is the job ID)
Definition
stop %n
Term
Use grep recursively
Definition
grep -r

You can search recursively i.e. read all files under each directory for a string "192.168.1.5"

$ grep -r "192.168.1.5" /etc/
Term
Use grep to search words only
Definition
grep -w

When you search for boo, grep will match fooboo, boo123, etc. You can force grep to select only those lines containing matches that form whole words i.e. match only boo word:

$ grep -w "boo" /path/to/file
Term

Use grep to search 2 different words

Definition
$ egrep -w 'word1|word2' /path/to/file
Term

Count line when words has been matched

Definition

grep can report the number of times that the pattern has been matched for each file using -c (count) option:


$ grep -c 'word' /path/to/file

Term
Use grep to precede each line of output with the number of the line in the text file from which it was obtained
Definition
$ grep -n 'word' /path/to/file
Term

Grep invert match

Definition

You can use -v option to print inverts the match; that is, it matches only those lines that do not contain the given word. For example print all line that do not contain the word bar:


$ grep -v bar /path/to/file

Term
find all uses of the word "Posix" (in any case) in file text.mm and write with line numbers:
Definition
grep -i -n posix text.mm
Term
grep option to match using extended regular expressions.

EXPRESSIONS
Definition
grep -E
Term
grep option to Match using fixed strings.

FIXED STRINGS
Definition
grep -F
Term
Grep option to write only a count of selected lines to standard output.

COUNT
Definition
grep -c
Term
Grep option to specify one or more patterns to be used during the search for input.

PATTERN
Definition
grep -e
Term
Grep option to read one or more patterns from the file named by the path name pattern_file.

PATTERN
Definition
grep -f
Term
Grep Option to perform pattern matching in searches without regard to case
Definition
grep -i
Term
grep option to write only the names of files containing selected lines to standard output.

LINES
Definition
grep -l
Term
Grep option to precede each output line by its relative line number in the file, each file starting at line 1.
Definition
grep -n
Term
Grep option where nothing shall be written to the standard output, regardless of matching lines. "Quiet"
Definition
grep -q
Term
Grep option to suppress the error messages ordinarily written for nonexistent or unreadable files.
Definition
grep -s
Term
Grep option to select lines not matching any of the specified patterns.
Definition
grep -v
Term
Grep option to consider only input lines that use all characters in the line excluding the terminating to match an entire fixed string or regular expression to be matching lines.
Definition
grep -x
Term
Unix command to validate the actions of a command that was previously run where no output was displayed at the command line
Definition
echo $?

Example:

bash-3.00# useradd testing
bash-3.00# echo $?
0
bash-3.00#

The "0" indicates that there were no errors.
Term
ABI
Definition
(application binary interface) Defines the interfaces used by application developers to enhance the binary stability of an application.
Term
accept
Definition
The accept command allows the queuing of print requests for the named destinations (for example, printers). You must run the command on the print server.
Term
ACL
Definition
ACL
--------------------------------------------------------------------------------

Access Control Lists (ACLs) provide a higher level of file security than the standard UNIX® file permissions. ACLs give a file owner the ability to:

Allow access to that file or directory to one or more specific users or groups
Set the default permissions for specific users or groups
Term
Administration Tool
Definition
Access Control Lists (ACLs) provide a higher level of file security than the standard UNIX® file permissions. ACLs give a file owner the ability to:

Allow access to that file or directory to one or more specific users or groups
Set the default permissions for specific users or groups
Term
anonymous FTP
Definition
An anonymous File Transfer Protocol (FTP) is an FTP site that is set up for general use and does not require an account to obtain files. The word "anonymous" is the user name, and the user's email address is the password.
Term
anonymous memory pages
Definition
Anonymous memory pages are private data or stack pages in physical memory that are backed solely by swap space.
Term
argument
Definition
An argument specifies how and on what the preceding command is to be performed.
Term
ARP
Definition
ARP
--------------------------------------------------------------------------------

Address Resolution Protocol (ARP) defines the method that maps a 32-bit IP address to a 48-bit Ethernet address.
Term
at
Definition
at
--------------------------------------------------------------------------------

The at command executes specified commands (read from standard input) at a specified time. Standard output and standard error output are mailed to the user unless they are redirected elsewhere. The shell environment variables, current directory, unmask value, and ulimit value are retained when the commands are executed. The SHELL environment variable determines which shell to use.
Term
Displays the next screen of a man page
Definition
space bar
Term
Displays the next line of a man page
Definition
Return
Term
Moves back one full screen of a man page
Definition
b
Term
Searches forward one full screen in a man page
Definition
/pattern
Term
Finds the next occurrence of a pattern after the /pattern command has been used in a man page
Definition
n
Term
Provides a description of all scrolling capabilities in a man page
Definition
h
Term
Quits the man page
Definition
q
Term
Searches man page by section
Definition
man -s number command/filename
Term
searches man pages by keyword
Definition
man - k keyword
Term
Executing which command provides information about the system
Definition
uname
Term
Which command displays the current working directory in Solaris 10
Definition
pwd
Term
which command displays the directory contents
Definition
ls
Term
how are hidden files listed
Definition
all hidden files start with a "."
Term
What is the command to display the long list of mydir
Definition
ls -l mydir
Term
which symbol refers to the current working directory when using the cd command
Definition
cd .
Term
which symbol refers to the parent directory, the directory directly above the current working directory
Definition
cd ..
Supporting users have an ad free experience!