Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-25-2005, 12:31 PM   #1
Registered: Jun 2004
Location: Potsdam, NY
Distribution: Fedora Core 6
Posts: 201

Rep: Reputation: 30
View a File's Permission in ther Terminal

Is there a command that will show me a file's permissions while in the terminal? I thought that there might be an attribute under the `chmod' command, but I didn't see any. Thanks for any help.
Old 09-25-2005, 12:45 PM   #2
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
$ ls -ld
Think that should do it
Old 09-25-2005, 12:49 PM   #3
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS7
Posts: 267

Rep: Reputation: 58
I use: ls -l [filename] to see the permissions. output looks like this:

[drf@maplepark drf]$ ls -l waiver.txt
-rw-rw-r-- 1 drf drf 2988 Sep 6 17:12 waiver.txt
[drf@maplepark drf]$

showing owner read and write; group read and write; and other read.
Old 09-25-2005, 12:55 PM   #4
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
david 1941 is correct. The "d" is unnecessary unless you wish to view the permissions for a directory instead of a file, but you can still view the file permissions ok using "ls -ld <file>"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
You dont have permission to view this server! Alexander.s Linux - Software 2 04-25-2005 04:45 PM
How to make "Terminal" view Chinese properlly? seow_ming Linux - Networking 5 01-09-2005 10:39 PM
view another user's terminal? doza Linux - Software 2 08-18-2004 01:27 PM
How can I view the Linux's kernel version (in terminal)? woodland Linux - Newbie 4 04-26-2004 12:12 AM
oflline dictionaryHi ther alaios Linux - Software 1 04-14-2004 09:28 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:32 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration