Listing Files in UNIX

Listing Files in UNIX

Hi friends , Lets have a look on listing the files and sub-directory files. we have a linux command for listing the files in the system and some other parameter options to check more information about the files.

The ls command used to display all the files listed in the current directory.

Command : $ ls

Linux will use hidden files for configuration storage information default.we can't list the hidden files by using the simple basic ls command . To display all the hidden files we have to use -a parameter with ls command.

Command : $ ls -a

To check the sub-directory files of current directory, we can use recursive option. If you have lot of files, then this will be long listing process.

Command : $ ls -R

Note: If we want to check the file type, we can use -F , then the command looks like $ ls -F -R

To check more information about the file such as modified date, time , owner,byte size and directory name. we can use -l.

Command: $ ls -l

Next article topic: Filtering list

That's it folks ,Hope you have understand something new. Have a nice day.

Pon Thilakan

NDT Engineer (ASNT & NAS410)

4 年

Nice

回复

要查看或添加评论,请登录

Anuram Srinivasan的更多文章

  • Automatic Redis key expire

    Automatic Redis key expire

    Hi guys, Today lets look into something interesting i.e 'how to expire the key value automatically in Redis'…

    1 条评论
  • Redis basic commands with example

    Redis basic commands with example

    Hi friends , let us learn some basic commands used in redis-cli. Before discussing about redis commands , what is…

  • Creating files - UNIX

    Creating files - UNIX

    Let us see, how to create the files using commands in Unix Operating System. There are two commands to create a file.

    2 条评论
  • Alert vs Log Function in javascript

    Alert vs Log Function in javascript

    Alert Function: Basic structure of alert function looks like alert(..

  • Cloning an Object

    Cloning an Object

    Now we all know how to create an Object. Let's take a quick look at how we can clone an object in Js.

社区洞察

其他会员也浏览了