Skip to content

SergioEstevao11/FEUP-SOPE-XMOD

ย 
ย 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

58 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

FEUP-SOPE-XMOD

Description - UNIX's 'chmod' command replica

Course - Operating Systems

Project Overview

XMOD is a UNIX command line tool that replicates the functionality of the 'chmod' command. It runs in user-space and allows users to change the permissions of files and directories on a UNIX-based system.

Usage

To run the XMOD, simply compile the source code using the provided Makefile and then execute the resulting binary. XMOD supports both octal and symbolic inputs.
Supports the flags: -R (recursive); -v (verbose); -c (compact).
The commands to run are:

./xmod [OPTIONS] [FILEPATH]

Examples:

  • Octal

./xmod 0777 ficheiro.txt

  • Symbolic

./xmod u=rwx ficheiro.txt
./xmod g=rwx ficheiro.txt
./xmod o=rwx ficheiro.txt

About

๐Ÿ”’ UNIX's 'chmod' command replica

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.6%
  • Makefile 1.4%