ls command

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

{ 2 comments }

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.

{ 39 comments }

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 […]

{ 44 comments }

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 […]

{ 2 comments }

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 […]

{ 2 comments }

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) […]

{ 0 comments }

Q. Can you explain me what is device files and how do I access or see device files? Why UNIX / Linux has device files? A. Under Linux and UNIX each and every hardware device treated as a file. A device file allows to accesses hardware devices so that end users do not need to […]

{ 15 comments }