BASH General Flashcards

1
Q

How to check OS and version using a Linux command

A

all info: uname -a

os name: uname -o

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

Inode number also called as index number - what info does it consist?

A
File types ( executable, block special etc )
Permissions ( read, write etc )
UID ( Owner )
GID ( Group )
FileSize
Time stamps including last access, last modification and last inode number change.
File deletion time
Number of links ( soft/hard )
Location of ile on harddisk.
Some other metadata about file.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What command shall we use to identify whether a command is built-in or external

A

$ type echo
echo is a shell builtin

$ type ifconfig
ifconfig is /sbin/ifconfig

$ type type
type is a shell builtin

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