Bash Interpreter Commands Flashcards

1
Q

Device Information Gathering:

  1. uname
    • a
  2. lsblk
A
  1. Unix Name
    A. kernel n, node n, kernel release, kernel version, CPU arch, OS
  2. List block devices(disk/partitions)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
Security & Privileges:
1. sudo
2. su
3. chmod
    3modes=r,w,x/4,2,1 (for comb +)
    3users= owner,usergroup,world
4. chown 
 :  4. md5sum
A
  1. Super user do - priv command exe
  2. Super User log in
  3. Change file mode bits(permissions)
  4. Change file owner and group.
    A. Owner
    B. Group
  5. Compute & Check MD5 Mssg Digest
    (Less secure that sha1sum)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

File/Directory Manipulation:

  1. mkdir
  2. touch
A
  1. Make directory

2. Update access and modification times of each file to current time
Will create a new file if nonexistent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Navigation:

  1. ls
    • a
    • l
  2. history / Ctrl+R
A
  1. List Directory Contents
    A. Incl hidden
    B. Incl permissions,owner,group,size,mod date/name
  2. History (event) Record
  3. List Block Devices
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Package Installation/Prog Compilation:

1.apt-get
B. install
2.apt-cache
A. pkgnames

A

1
A. Installs selected package
2. Identify Package Dependencies and search for apt installed pkgs
A. List all available packages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly