ls command

Q. How do I list all open files for a Linux or UNIX process using command line options?


Q. Can you tell me more about dot-files that shell and many UNIX command reads?


How do I check whether a directory is empty or not under Linux / UNIX using a shell script? I’d like to take some action if directory is empty.


Q. How do I create a soft link (symbolic link) under UNIX or Linux operating system? A. To make links between files you need to use ln command. A symbolic link (also known as a soft link or symlink) consists of a special type of file that serves as a reference to another file or […]


Q. How do I display file inode number using command line? A. An inode is a data structure on a Unix / Linux file system. An inode stores basic information about a regular file, directory, or other file system object. You can use following two commands to display an inode: [a] ls command : list […]


Q. Can you specify rules for naming a file name under Linux? A. When you save a data, you nee to select a file name, you need to follow certain rules and regulation regarding the length of the name and the types of characters you include. Rules for naming file names The rules for naming […]


Q. I’m new to Linux and how do I examine filesystem and identify regular files or directories? A. Both Linux and UNIX comes with ls command for examining the filesystem. You can use ls command to look at the filesystem. ls command can display: => Character devices => Regular files => Sym links (symbolic links) […]