Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory monitor motherboard network printer problem ram registry router security slow software sound toshiba trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Is there a way to see permissions by using the command line

Reply  
Thread Tools
royeo's Avatar
Computer Specs
Member with 158 posts.
 
Join Date: Jul 2006
Experience: Intermediate
30-May-2007, 11:16 PM #1
Is there a way to see permissions by using the command line
I have Fedora Core 6 and use KDE.

Is there a way to see permissions by using the command line, so you can see the results of a "chmod" command?

I know you can see permissions by right clicking the file in Konqueror.

Thanks,

royeo
vtel57's Avatar
Senior Member with 803 posts.
 
Join Date: Jul 2004
Location: Tampa, Florida, USA
Experience: Intermediate to Advanced
31-May-2007, 02:05 AM #2
Sure...

Code:
 $ ls -al
That's small case "L", small case "S", space, dash, small case "A", and another small case "L". This command will list all the files, including hidden files, in the directory that you are in at the time along with the rwx (read, write, execute) permissions for each file. It will look something like this:

Quote:
vtel57@ericsbane03:~$ ls -al
total 268
drwxr-xr-x 34 vtel57 vtel57 4096 2007-05-31 00:50 .
drwxr-xr-x 4 root root 4096 2006-12-20 21:12 ..
drwxr-xr-x 3 vtel57 vtel57 4096 2006-12-26 19:42 .adobe
-rw------- 1 vtel57 vtel57 2471 2007-05-26 17:46 .bash_history
-rw-r--r-- 1 vtel57 vtel57 220 2006-12-20 21:12 .bash_logout
-rw-r--r-- 1 vtel57 vtel57 414 2006-12-20 21:12 .bash_profile
-rw-r--r-- 1 vtel57 vtel57 2227 2006-12-20 21:12 .bashrc
drwx------ 4 vtel57 vtel57 4096 2006-12-26 03:01 .config

... and so on...
If you don't care about the hidden files, then just type:

Code:
$ ls -l
HERE is an excellent book to help you with the BASH shell command line interface.

Have FUN!
__________________
V.T. Eric Layton
***Tempus Fugits***
briealeida's Avatar
Computer Specs
Senior Member with 677 posts.
 
Join Date: Jun 2007
Location: US and A
Experience: Ninja
03-Jun-2007, 02:32 AM #3
the "ll" command will do this too (with fewer keystrokes).
vtel57's Avatar
Senior Member with 803 posts.
 
Join Date: Jul 2004
Location: Tampa, Florida, USA
Experience: Intermediate to Advanced
03-Jun-2007, 03:33 PM #4
Quote:
Originally Posted by briealeida
the "ll" command will do this too (with fewer keystrokes).
Please explain that command. Is that two small case "L"s or two pipe commands? Either way, they're not recognized as commands in BASH.
briealeida's Avatar
Computer Specs
Senior Member with 677 posts.
 
Join Date: Jun 2007
Location: US and A
Experience: Ninja
12-Jun-2007, 09:33 AM #5
It's two lower case 'l's.

I don't really use FC but it should come standard? ls works too but is more keystrokes. ;-).
ghostdog74's Avatar
Member with 146 posts.
 
Join Date: Dec 2005
12-Jun-2007, 11:38 AM #6
ls -l is the equivalent of ll. ll doesn't come with all *nixes... use ls -l instead.
bkdc's Avatar
Senior Member with 524 posts.
 
Join Date: Apr 2003
Location: Tampa, Flordia USA
Experience: Advanced Dummy
12-Jun-2007, 11:56 AM #7
As ghostdog74 said, ll my not work on your system.

ll is an alias for ls -l

Aliases are redefinitions of commands; system aliases are entered in the bashrc file under /etc or you can define your own in your bashrc file in your home directiory.
briealeida's Avatar
Computer Specs
Senior Member with 677 posts.
 
Join Date: Jun 2007
Location: US and A
Experience: Ninja
15-Jun-2007, 10:39 AM #8
Sorry about the ll command.
Didn't mean to confuse.

"man ls" will give you all of your options.
vtel57's Avatar
Senior Member with 803 posts.
 
Join Date: Jul 2004
Location: Tampa, Florida, USA
Experience: Intermediate to Advanced
15-Jun-2007, 05:11 PM #9
No confusion... just always interested in learning new stuff.
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 09:44 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.