answersLogoWhite

0


Best Answer

Use the 'ls' command with the long listing option:

ls -l

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you display the permissions for a file or directory?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you display permissions for a file or directory?

Use the 'ls' command with the '-l' (long listing) option


What are the two commands for setting permissions on a file or directory?

There is generally only 1 standard command for permissions on a file or directory - chmod. You can affect permissions by other commands such as changing the ownership or group ownership of a file or directory. Other commands may be specific to different versions of Unix and Linux, so are not listed here.


What is another name for file permissions?

Also called the access mode of a file or directory.


What does drwxrw-r-- in Linux mean?

This is a display of file permissions. In particular, it means:drwxrw-r-- - The specified object is a directory, not a filedrwxrw-r-- - The file / directory can be read by its ownerdrwxrw-r-- - The file / directory can be modified by its ownerdrwxrw-r-- - The file / directory can be executed as a binary by its ownerdrwxrw-r-- - The file / directory can be read by members of the specified groupdrwxrw-r-- - The file / directory can be modified by members of the specified group.drwxrw-r-- - The file / directory cannot be executed by members of the specified group.drwxrw-r-- - The file / directory can be read by others not in the group.drwxrw-r-- - The file / directory cannot be modified by others not in the group.drwxrw-r-- - The file / directory cannot be executed by others not in the group.


What are file permissions in Linux?

The typical way to view file permissions is to use the 'ls' command with the long listing options enabled, For example, to see the file permissions for everything in the current directory, type: ls -lsa


How do you change file permissions on Yummy FTP?

Select the file you want to change permissions for in the directory listing. Click on the Info icon in the toolbar, or select Get Info from the File menu. Change the permissions in the Info window. You can automatically set permissions when you upload a file. In the Preferences window select Server Options and tick the Set permissions of uploaded files box.


What permissions does Linux have on files and directories?

Each file and directory can be marked read-only, writable, and executable. Each file / directory will contain three sets of permissions that can be marked as such, namely the owner, other users in the owners group, and users not in the group.


What is 000 in unix file systems?

It depends on where the 000 is being used. For permissions, it would indicate that the file or directory or device has no permissions at all. For the 'umask' it would indicate that all newly created files or directories would have wide open permissions (world read, world write, etc.).


How do you get rid of file that needs permision?

hit your computer with a hammer, it's scientificaly proven. Log in as an administrator, change the permissions. If you cannot change the permissions on the file (or any parent directory that is blocking it) then you might have to reformat you system (loosing all data).


How you display the premission for a file or directory?

Use the 'ls' command with the '-l' (long listing) option


Write a shell program to check read and write permissions of a file?

You don't say what you want to do with the permissions, but most shells have a 'test' command that can look at various permissions. Look at the 'man' command for the shell you are running in to see what tests are possible on files and directories. You can check to see if the target is a directory, or a file, and whether it has read, write, or execute/search permissions. Again, it varies by the shell environment.


What are stored in a file's inode?

Mostly depends on the filesystem, but generally it'll be the name of the file, the kind of file it is (Regular, directory, or link.), where the file is found physically, which can be multiple values. File's size, and I believe also file permissions.