BASH General Flashcards
1
Q
How to check OS and version using a Linux command
A
all info: uname -a
os name: uname -o
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.
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