OS Midterm study guide1

OS Midterm study guide1

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

chsh

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (77)

Section 1

(50 cards)

chsh

Front

Switch login shell.

Back

ssh

Front

It provides encrypted communication between the hosts

Back

setenv

Front

built-in function of the C shell (csh). It is used to define the value of environment variables

Back

echo

Front

Send input string(s) to standard output i.e. display text on the screen.

Back

man

Front

Shows manual pages for Linux commands.

Back

whoami

Front

Displays the username tied to the current effective user ID.

Back

nslookup

Front

Used performs DNS queries. Read this article for more info.

Back

cmp

Front

Compare two files (byte by byte).

Back

df

Front

Show disk usage.

Back

touch

Front

Change file access and modification times.

Back

chmod

Front

Change access permission for a file(s).

Back

info

Front

Used to read the documentation in Info format.

Back

history

Front

Shows the command history.

Back

alias

Front

Create an alias for Linux commands

Back

cd

Front

Used to change directory.

Back

du

Front

Show disk usage summary for a file(s).

Back

<Control>c

Front

Cancels a command or interrupts a running program.

Back

mv

Front

Move/rename files or directories.

Back

ping

Front

Send ICMP ECHO_REQUEST to network hosts.

Back

cal

Front

Show calendar.

Back

more

Front

Display content of a file page-by-page.

Back

less

Front

Displays contents of a file one page at a time. It's advanced than more command.

Back

clear

Front

Used to clear the terminal window.

Back

diff

Front

Used to compare files line by line.

Back

wget

Front

A non-interactive file download utility.

Back

free

Front

Show free and used system memory.

Back

date

Front

Show system date and time.

Back

tail

Front

Show the last 10 lines of each specified file(s).

Back

cat

Front

Used to concatenate files and print them on the screen.

Back

bash

Front

GNU Bourne-Again Shell.

Back

ln

Front

Create links between files. Links can be hard (two names for the same file) or soft (a shortcut of the first file).

Back

mkdir

Front

Used to create directories.

Back

w

Front

Show who is logged-on and what they're doing.

Back

find

Front

Do a file search in a directory hierarchy.

Back

telnet

Front

Used to interact with another host

Back

grep

Front

Searches input files for a given pattern and displays the relevant lines.

Back

xargs

Front

Runs a command using initial arguments and then reads remaining arguments from standard input.

Back

<Control>d

Front

Signals the end of a file you are entering from the terminal if typed at the beginning of a line or if typed twice elsewhere in a line.

Back

mount

Front

Mount a filesystem.

Back

file

Front

Determine file type for a file.

Back

head

Front

Shows first 10 lines from each specified file.

Back

which

Front

For a given command, lists the pathnames for the files which would be executed when the command runs.

Back

ls

Front

Shows the list of files in the current directory.

Back

set

Front

Used to manipulate shell variables and functions.

Back

pwd

Front

Show current directory.

Back

man

Front

Shows manual pages for Linux commands.

Back

info

Front

Used to read the documentation in Info format.

Back

scp

Front

Copy files between hosts on a network securely using SSH.

Back

egrep

Front

Search and display text matching a pattern.

Back

echo

Front

Send input string(s) to standard output i.e. display text on the screen.

Back

Section 2

(27 cards)

◦ ?

Front

- quantified zero or one

Back

ls -F

Front

Put an indicator character at the end of each name

Back

touch myfile

Front

(create file)

Back

◦ ^

Front

- beginning of line

Back

[XxYy]

Front

- character class matching upper or lower case "X" or ""Y"

Back

chmod ugo+x myfile

Front

(add user, group and other execute permission)

Back

chmod ugo+w mydir

Front

(add user, group and other write permission)

Back

chmod a-w

Front

(a=ALL, remove user, group and other write permission)

Back

◦ $

Front

- end of line

Back

ls -a

Front

List all file including hidden file beginning with a period "."

Back

chmod g+w myfile

Front

(add group write permission)

Back

◦ +

Front

- quantifier one or more

Back

gvim

Front

opens a GUI program

Back

◦ ls -lt

Front

Sort files by modification time

Back

emacs

Front

text editor command line utility.

Back

◦ *

Front

- quantifier none or more

Back

◦ ls -l myfile

Front

(examine file)

Back

awk

Front

Used to find and replace text in a file(s).

Back

◦ ls -lh

Front

Give human readable file sizes

Back

.

Front

- any character

Back

◦ ls -lS

Front

Sort files by file size

Back

vim

Front

Vi Improved, a text-based editor which is a successor to vi.

Back

sed

Front

Stream editor for filtering and transforming text (from a file or a pipe input).

Back

ls -l

Front

Simple long listing

Back

◦ mkdir mydir

Front

(create directory)

Back

◦ ls -ld mydir

Front

(examine directory) ◦

Back

ls -ld *

Front

List details about a directory and not its contents ◦

Back