FileTypes:-
Ordinary - text, ./binary, .images, html and conf files
Directory - Also known as folders
Special/Device File - Hardware
Devices - /dev/lp0 , /dev/hda1, /dev/sda1, /dev/fd0
Logical Devices - /dev/null , /dev/zero
Links - Hardlinks and SoftLinks + Difference of Hardlinks & SoftLinks
Sockets - A socket refers to a special file with which communication between locally running processes happens
FIFOs Or Named Pipes - act more or less like sockets and form a way for processes to communicate with each other, without using network socket semantics
FIFO is a one way communication pipe, while Unix domain sockets (otherwise called as IPC Sockets) are two way communication pipes
ls -l /dev/console
crw------- 1 root root 5, 1 2008-03-30 17:45 /dev/console
- Regular file
d Directory
l Link
c Special file
s Socket
p Named pipe
Maximum number of characters for a file name --> 255
Use backslash for special characters
Case sensitivity for files
Color codes:-
blue directories
red compressed archives
white text files
pink images
cyan links
yellow devices
green executables
flashing red broken links
Suffix Schemes:-
nothing regular file
/ directory
* executable file
@ link
= socket
| named pipe
PathNames:-
Relative Path and Absolute path
Relative Path: the relative path is the path to the destination file /directory from the current location.
Absolute Path : the absolute path is the path from the '/'
Maximum length of PathNames including slashes - 4096
Examples:-
/root/humanlinux/Desktop/FIL-102 - Absolute Path (beginning with /)
relative pathe are:
../Desktop/FIL-102
./FIL-102
~/FIL-102
tell2humanlinux@gmail.com
No comments:
Post a Comment