Bash Interpreter Commands Flashcards
1
Q
Device Information Gathering:
- uname
- a
- lsblk
A
- Unix Name
A. kernel n, node n, kernel release, kernel version, CPU arch, OS - List block devices(disk/partitions)
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
- Super user do - priv command exe
- Super User log in
- Change file mode bits(permissions)
- Change file owner and group.
A. Owner
B. Group - Compute & Check MD5 Mssg Digest
(Less secure that sha1sum)
3
Q
File/Directory Manipulation:
- mkdir
- touch
A
- Make directory
2. Update access and modification times of each file to current time
Will create a new file if nonexistent
4
Q
Navigation:
- ls
- a
- l
- history / Ctrl+R
A
- List Directory Contents
A. Incl hidden
B. Incl permissions,owner,group,size,mod date/name - History (event) Record
- List Block Devices
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