LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-25-2005, 01:31 PM   #1
darkarcon2015
Member
 
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, 01:45 PM   #2
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
Code:
$ ls -ld
Think that should do it
 
Old 09-25-2005, 01:49 PM   #3
david1941
Member
 
Registered: May 2005
Location: St. Louis, MO
Distribution: CentOS6
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, 01:55 PM   #4
dcdbutler
Member
 
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>"
 
  


Reply


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 05:45 PM
How to make "Terminal" view Chinese properlly? seow_ming Linux - Networking 5 01-09-2005 11:39 PM
view another user's terminal? doza Linux - Software 2 08-18-2004 02:27 PM
How can I view the Linux's kernel version (in terminal)? woodland Linux - Newbie 4 04-26-2004 01:12 AM
oflline dictionaryHi ther alaios Linux - Software 1 04-14-2004 10:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:57 PM.

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