abort() |
Abort the interpreter immediately. [extrait de abort.__doc__] |
access(path, mode, *, dir_fd=None, effective_ids=False, follow_symlinks=True) |
Use the real uid/gid to test for access to a path. [extrait de access.__doc__] |
chdir(path: str | bytes | os.PathLike) -> None |
Cette fonction permet de changer le répertoire courant de travail.
Change the current working directory to the specified path. [extrait de chdir.__doc__]
|
chmod(path: str | bytes | os.PathLike, mode: int, *, dir_fd=None, follow_symlinks=True) -> None |
Cette fonction permet de changer les droits d'accès d'un fichier ou d'un dossier (chmod = change mode).
Change the access permissions of a file. [extrait de chmod.__doc__]
|
chown(path, uid, gid, *, dir_fd=None, follow_symlinks=True) |
Change the owner and group id of path to the numeric uid and gid.\ [extrait de chown.__doc__] |
chroot(path) |
Change root directory to path. [extrait de chroot.__doc__] |
close(fd) |
Close a file descriptor. [extrait de close.__doc__] |
closerange(fd_low, fd_high) |
Closes all file descriptors in [fd_low, fd_high), ignoring errors. [extrait de closerange.__doc__] |
confstr(name) |
Return a string-valued system configuration variable. [extrait de confstr.__doc__] |
copy_file_range(src, dst, count, offset_src=None, offset_dst=None) |
Copy count bytes from one file descriptor to another. [extrait de copy_file_range.__doc__] |
cpu_count() |
Return the number of CPUs in the system; return None if indeterminable. [extrait de cpu_count.__doc__] |
ctermid() |
Return the name of the controlling terminal for this process. [extrait de ctermid.__doc__] |
device_encoding(fd) |
Return a string describing the encoding of a terminal's file descriptor. [extrait de device_encoding.__doc__] |
dup(fd) |
Return a duplicate of a file descriptor. [extrait de dup.__doc__] |
dup2(fd, fd2, inheritable=True) |
Duplicate file descriptor. [extrait de dup2.__doc__] |
eventfd(initval, flags=524288) |
Creates and returns an event notification file descriptor. [extrait de eventfd.__doc__] |
eventfd_read(fd) |
Read eventfd value [extrait de eventfd_read.__doc__] |
eventfd_write(fd, value) |
Write eventfd value. [extrait de eventfd_write.__doc__] |
execl(file, *args) |
execl(file, *args) [extrait de execl.__doc__] |
execle(file, *args) |
execle(file, *args, env) [extrait de execle.__doc__] |
execlp(file, *args) |
execlp(file, *args) [extrait de execlp.__doc__] |
execlpe(file, *args) |
execlpe(file, *args, env) [extrait de execlpe.__doc__] |
execv(path, argv) |
Execute an executable path with arguments, replacing current process. [extrait de execv.__doc__] |
execve(path, argv, env) |
Execute an executable path with arguments, replacing current process. [extrait de execve.__doc__] |
execvp(file, args) |
execvp(file, args) [extrait de execvp.__doc__] |
execvpe(file, args, env) |
execvpe(file, args, env) [extrait de execvpe.__doc__] |
fchdir(dir_fd: int) -> None |
Cette fonction permet de changer le répertoire courant de travail
Change to the directory of the given file descriptor. [extrait de fchdir.__doc__]
|
fchmod(fd: int, mode: int) -> None |
Cette fonction permet de changer les droits d'accès d'un fichier ou d'un dossier (fchmod = file change mode).
Change the access permissions of the file given by file descriptor fd. [extrait de fchmod.__doc__]
|
fchown(fd, uid, gid) |
Change the owner and group id of the file specified by file descriptor. [extrait de fchown.__doc__] |
fdatasync(fd) |
Force write of fd to disk without forcing update of metadata. [extrait de fdatasync.__doc__] |
fdopen(fd, mode='r', buffering=-1, encoding=None, *args, **kwargs) |
|
fork() |
Fork a child process. [extrait de fork.__doc__] |
forkpty() |
Fork a new process with a new pseudo-terminal as controlling tty. [extrait de forkpty.__doc__] |
fpathconf(fd, name) |
Return the configuration limit name for the file descriptor fd. [extrait de fpathconf.__doc__] |
fsdecode(filename) |
Decode filename (an os.PathLike, bytes, or str) from the filesystem [extrait de fsdecode.__doc__] |
fsencode(filename) |
Encode filename (an os.PathLike, bytes, or str) to the filesystem [extrait de fsencode.__doc__] |
fspath(path) |
Return the file system path representation of the object. [extrait de fspath.__doc__] |
fstat(fd) |
Perform a stat system call on the given file descriptor. [extrait de fstat.__doc__] |
fstatvfs(fd) |
Perform an fstatvfs system call on the given fd. [extrait de fstatvfs.__doc__] |
fsync(fd) |
Force write of fd to disk. [extrait de fsync.__doc__] |
ftruncate(fd, length) |
Truncate a file, specified by file descriptor, to a specific length. [extrait de ftruncate.__doc__] |
fwalk(top='.', topdown=True, onerror=None, *, follow_symlinks=False, dir_fd=None) |
Directory tree generator. [extrait de fwalk.__doc__] |
get_blocking(fd) |
Get the blocking mode of the file descriptor. [extrait de get_blocking.__doc__] |
get_exec_path(env=None) |
Returns the sequence of directories that will be searched for the [extrait de get_exec_path.__doc__] |
get_inheritable(fd) |
Get the close-on-exe flag of the specified file descriptor. [extrait de get_inheritable.__doc__] |
get_terminal_size |
Return the size of the terminal window as (columns, lines). [extrait de get_terminal_size.__doc__] |
getcwd() -> str |
Cette fonction permet de récupérer le chemin du répertoire de travail courant (getcwd = get current working directory)
Return a unicode string representing the current working directory. [extrait de getcwd.__doc__]
|
getcwdb() |
Return a bytes string representing the current working directory. [extrait de getcwdb.__doc__] |
getegid() |
Return the current process's effective group id. [extrait de getegid.__doc__] |
getenv(key, default=None) |
Get an environment variable, return None if it doesn't exist. [extrait de getenv.__doc__] |
getenvb(key, default=None) |
Get an environment variable, return None if it doesn't exist. [extrait de getenvb.__doc__] |
geteuid() |
Return the current process's effective user id. [extrait de geteuid.__doc__] |
getgid() |
Return the current process's group id. [extrait de getgid.__doc__] |
getgrouplist(user, group) |
Returns a list of groups to which a user belongs. [extrait de getgrouplist.__doc__] |
getgroups() |
Return list of supplemental group IDs for the process. [extrait de getgroups.__doc__] |
getloadavg() |
Return average recent system load information. [extrait de getloadavg.__doc__] |
getlogin() |
Return the actual login name. [extrait de getlogin.__doc__] |
getpgid(pid) |
Call the system call getpgid(), and return the result. [extrait de getpgid.__doc__] |
getpgrp() |
Return the current process group id. [extrait de getpgrp.__doc__] |
getpid() |
Return the current process id. [extrait de getpid.__doc__] |
getppid() |
Return the parent's process id. [extrait de getppid.__doc__] |
getpriority(which, who) |
Return program scheduling priority. [extrait de getpriority.__doc__] |
getrandom(size, flags=0) |
Obtain a series of random bytes. [extrait de getrandom.__doc__] |
getresgid() |
Return a tuple of the current process's real, effective, and saved group ids. [extrait de getresgid.__doc__] |
getresuid() |
Return a tuple of the current process's real, effective, and saved user ids. [extrait de getresuid.__doc__] |
getsid(pid) |
Call the system call getsid(pid) and return the result. [extrait de getsid.__doc__] |
getuid() |
Return the current process's user id. [extrait de getuid.__doc__] |
getxattr(path, attribute, *, follow_symlinks=True) |
Return the value of extended attribute attribute on path. [extrait de getxattr.__doc__] |
initgroups(username, gid) |
Initialize the group access list. [extrait de initgroups.__doc__] |
isatty(fd) |
Return True if the fd is connected to a terminal. [extrait de isatty.__doc__] |
kill(pid, signal) |
Kill a process with a signal. [extrait de kill.__doc__] |
killpg(pgid, signal) |
Kill a process group with a signal. [extrait de killpg.__doc__] |
lchown(path, uid, gid) |
Change the owner and group id of path to the numeric uid and gid. [extrait de lchown.__doc__] |
link(src, dst, *, src_dir_fd=None, dst_dir_fd=None, follow_symlinks=True) |
Create a hard link to a file. [extrait de link.__doc__] |
listdir(path=None) |
Return a list containing the names of the files in the directory. [extrait de listdir.__doc__] |
listxattr(path=None, *, follow_symlinks=True) |
Return a list of extended attributes on path. [extrait de listxattr.__doc__] |
lockf(fd, command, length) |
Apply, test or remove a POSIX lock on an open file descriptor. [extrait de lockf.__doc__] |
login_tty(fd) |
Prepare the tty of which fd is a file descriptor for a new login session. [extrait de login_tty.__doc__] |
lseek(fd, position, how) |
Set the position of a file descriptor. Return the new position. [extrait de lseek.__doc__] |
lstat(path, *, dir_fd=None) |
Perform a stat system call on the given path, without following symbolic links. [extrait de lstat.__doc__] |
major(device) |
Extracts a device major number from a raw device number. [extrait de major.__doc__] |
makedev(major, minor) |
Composes a raw device number from the major and minor device numbers. [extrait de makedev.__doc__] |
makedirs(path: str | bytes | os.PathLike, mode: int = 0o777, exist_ok: bool = False) -> None |
Cette fonction permet de créer un nouveau dossier mais aussi les dossiers intermédiaires qui pourraient ne pas exister.
makedirs(name [, mode=0o777][, exist_ok=False]) [extrait de makedirs.__doc__]
|
memfd_create(name, flags=1) |
|
minor(device) |
Extracts a device minor number from a raw device number. [extrait de minor.__doc__] |
mkdir(path: str | bytes | os.PathLike, mode: int = 0o777, *, dir_fd: int = None) -> None |
Cette fonction permet de créer un nouveau dossier (mkdir = MaKe DIRectory).
Create a directory. [extrait de mkdir.__doc__]
|
mkfifo(path, mode=438, *, dir_fd=None) |
Create a "fifo" (a POSIX named pipe). [extrait de mkfifo.__doc__] |
mknod(path, mode=384, device=0, *, dir_fd=None) |
Create a node in the file system. [extrait de mknod.__doc__] |
nice(increment) |
Add increment to the priority of process and return the new priority. [extrait de nice.__doc__] |
open(path, flags, mode=511, *, dir_fd=None) |
Open a file for low level IO. Returns a file descriptor (integer). [extrait de open.__doc__] |
openpty() |
Open a pseudo-terminal. [extrait de openpty.__doc__] |
pathconf(path, name) |
Return the configuration limit name for the file or directory path. [extrait de pathconf.__doc__] |
pidfd_open(pid, flags=0) |
Return a file descriptor referring to the process *pid*. [extrait de pidfd_open.__doc__] |
pipe() |
Create a pipe. [extrait de pipe.__doc__] |
pipe2(flags) |
Create a pipe with flags set atomically. [extrait de pipe2.__doc__] |
popen(cmd, mode='r', buffering=-1) |
|
posix_fadvise(fd, offset, length, advice) |
Announce an intention to access data in a specific pattern. [extrait de posix_fadvise.__doc__] |
posix_fallocate(fd, offset, length) |
Ensure a file has allocated at least a particular number of bytes on disk. [extrait de posix_fallocate.__doc__] |
posix_spawn |
Execute the program specified by path in a new process. [extrait de posix_spawn.__doc__] |
posix_spawnp |
Execute the program specified by path in a new process. [extrait de posix_spawnp.__doc__] |
pread(fd, length, offset) |
Read a number of bytes from a file descriptor starting at a particular offset. [extrait de pread.__doc__] |
preadv(fd, buffers, offset, flags=0) |
Reads from a file descriptor into a number of mutable bytes-like objects. [extrait de preadv.__doc__] |
putenv(name, value) |
Change or add an environment variable. [extrait de putenv.__doc__] |
pwrite(fd, buffer, offset) |
Write bytes to a file descriptor starting at a particular offset. [extrait de pwrite.__doc__] |
pwritev(fd, buffers, offset, flags=0) |
Writes the contents of bytes-like objects to a file descriptor at a given offset. [extrait de pwritev.__doc__] |
read(fd, length) |
Read from a file descriptor. Returns a bytes object. [extrait de read.__doc__] |
readlink(path, *, dir_fd=None) |
Return a string representing the path to which the symbolic link points. [extrait de readlink.__doc__] |
readv(fd, buffers) |
Read from a file descriptor fd into an iterable of buffers. [extrait de readv.__doc__] |
register_at_fork |
Register callables to be called when forking a new process. [extrait de register_at_fork.__doc__] |
remove(path, *, dir_fd=None) |
Remove a file (same as unlink()). [extrait de remove.__doc__] |
removedirs(name) |
removedirs(name) [extrait de removedirs.__doc__] |
removexattr(path, attribute, *, follow_symlinks=True) |
Remove extended attribute attribute on path. [extrait de removexattr.__doc__] |
rename(src, dst, *, src_dir_fd=None, dst_dir_fd=None) |
Rename a file or directory. [extrait de rename.__doc__] |
renames(old, new) |
renames(old, new) [extrait de renames.__doc__] |
replace(src, dst, *, src_dir_fd=None, dst_dir_fd=None) |
Rename a file or directory, overwriting the destination. [extrait de replace.__doc__] |
rmdir(path: str | bytes | os.PathLike, *, dir_fd: int = None) -> None |
Cette fonction permet de supprimer le dossier spécifié en paramètre (rmdir = ReMove DIRectory).
Remove a directory. [extrait de rmdir.__doc__]
|
scandir(path=None) |
Return an iterator of DirEntry objects for given path. [extrait de scandir.__doc__] |
sched_get_priority_max(policy) |
Get the maximum scheduling priority for policy. [extrait de sched_get_priority_max.__doc__] |
sched_get_priority_min(policy) |
Get the minimum scheduling priority for policy. [extrait de sched_get_priority_min.__doc__] |
sched_getaffinity(pid) |
Return the affinity of the process identified by pid (or the current process if zero). [extrait de sched_getaffinity.__doc__] |
sched_getparam(pid) |
Returns scheduling parameters for the process identified by pid. [extrait de sched_getparam.__doc__] |
sched_getscheduler(pid) |
Get the scheduling policy for the process identified by pid. [extrait de sched_getscheduler.__doc__] |
sched_rr_get_interval(pid) |
Return the round-robin quantum for the process identified by pid, in seconds. [extrait de sched_rr_get_interval.__doc__] |
sched_setaffinity(pid, mask) |
Set the CPU affinity of the process identified by pid to mask. [extrait de sched_setaffinity.__doc__] |
sched_setparam(pid, param) |
Set scheduling parameters for the process identified by pid. [extrait de sched_setparam.__doc__] |
sched_setscheduler(pid, policy, param) |
Set the scheduling policy for the process identified by pid. [extrait de sched_setscheduler.__doc__] |
sched_yield() |
Voluntarily relinquish the CPU. [extrait de sched_yield.__doc__] |
sendfile(out_fd, in_fd, offset, count) |
Copy count bytes from file descriptor in_fd to file descriptor out_fd. [extrait de sendfile.__doc__] |
set_blocking(fd, blocking) |
Set the blocking mode of the specified file descriptor. [extrait de set_blocking.__doc__] |
set_inheritable(fd, inheritable) |
Set the inheritable flag of the specified file descriptor. [extrait de set_inheritable.__doc__] |
setegid(egid) |
Set the current process's effective group id. [extrait de setegid.__doc__] |
seteuid(euid) |
Set the current process's effective user id. [extrait de seteuid.__doc__] |
setgid(gid) |
Set the current process's group id. [extrait de setgid.__doc__] |
setgroups(groups) |
Set the groups of the current process to list. [extrait de setgroups.__doc__] |
setpgid(pid, pgrp) |
Call the system call setpgid(pid, pgrp). [extrait de setpgid.__doc__] |
setpgrp() |
Make the current process the leader of its process group. [extrait de setpgrp.__doc__] |
setpriority(which, who, priority) |
Set program scheduling priority. [extrait de setpriority.__doc__] |
setregid(rgid, egid) |
Set the current process's real and effective group ids. [extrait de setregid.__doc__] |
setresgid(rgid, egid, sgid) |
Set the current process's real, effective, and saved group ids. [extrait de setresgid.__doc__] |
setresuid(ruid, euid, suid) |
Set the current process's real, effective, and saved user ids. [extrait de setresuid.__doc__] |
setreuid(ruid, euid) |
Set the current process's real and effective user ids. [extrait de setreuid.__doc__] |
setsid() |
Call the system call setsid(). [extrait de setsid.__doc__] |
setuid(uid) |
Set the current process's user id. [extrait de setuid.__doc__] |
setxattr(path, attribute, value, flags=0, *, follow_symlinks=True) |
Set extended attribute attribute on path to value. [extrait de setxattr.__doc__] |
spawnl(mode, file, *args) |
spawnl(mode, file, *args) -> integer [extrait de spawnl.__doc__] |
spawnle(mode, file, *args) |
spawnle(mode, file, *args, env) -> integer [extrait de spawnle.__doc__] |
spawnlp(mode, file, *args) |
spawnlp(mode, file, *args) -> integer [extrait de spawnlp.__doc__] |
spawnlpe(mode, file, *args) |
spawnlpe(mode, file, *args, env) -> integer [extrait de spawnlpe.__doc__] |
spawnv(mode, file, args) |
spawnv(mode, file, args) -> integer [extrait de spawnv.__doc__] |
spawnve(mode, file, args, env) |
spawnve(mode, file, args, env) -> integer [extrait de spawnve.__doc__] |
spawnvp(mode, file, args) |
spawnvp(mode, file, args) -> integer [extrait de spawnvp.__doc__] |
spawnvpe(mode, file, args, env) |
spawnvpe(mode, file, args, env) -> integer [extrait de spawnvpe.__doc__] |
splice(src, dst, count, offset_src=None, offset_dst=None, flags=0) |
Transfer count bytes from one pipe to a descriptor or vice versa. [extrait de splice.__doc__] |
stat(path, *, dir_fd=None, follow_symlinks=True) |
Perform a stat system call on the given path. [extrait de stat.__doc__] |
statvfs(path) |
Perform a statvfs system call on the given path. [extrait de statvfs.__doc__] |
strerror(code) |
Translate an error code to a message string. [extrait de strerror.__doc__] |
symlink(src, dst, target_is_directory=False, *, dir_fd=None) |
Create a symbolic link pointing to src named dst. [extrait de symlink.__doc__] |
sync() |
Force write of everything to disk. [extrait de sync.__doc__] |
sysconf(name) |
Return an integer-valued system configuration variable. [extrait de sysconf.__doc__] |
system(command) |
Execute the command in a subshell. [extrait de system.__doc__] |
tcgetpgrp(fd) |
Return the process group associated with the terminal specified by fd. [extrait de tcgetpgrp.__doc__] |
tcsetpgrp(fd, pgid) |
Set the process group associated with the terminal specified by fd. [extrait de tcsetpgrp.__doc__] |
times() |
Return a collection containing process timing information. [extrait de times.__doc__] |
truncate(path, length) |
Truncate a file, specified by path, to a specific length. [extrait de truncate.__doc__] |
ttyname(fd) |
Return the name of the terminal device connected to 'fd'. [extrait de ttyname.__doc__] |
umask(mask) |
Set the current numeric umask and return the previous umask. [extrait de umask.__doc__] |
uname() |
Return an object identifying the current operating system. [extrait de uname.__doc__] |
unlink(path, *, dir_fd=None) |
Remove a file (same as remove()). [extrait de unlink.__doc__] |
unsetenv(name) |
Delete an environment variable. [extrait de unsetenv.__doc__] |
urandom(size) |
Return a bytes object containing random bytes suitable for cryptographic use. [extrait de urandom.__doc__] |
utime |
Set the access and modified time of path. [extrait de utime.__doc__] |
wait() |
Wait for completion of a child process. [extrait de wait.__doc__] |
wait3(options) |
Wait for completion of a child process. [extrait de wait3.__doc__] |
wait4(pid, options) |
Wait for completion of a specific child process. [extrait de wait4.__doc__] |
waitid(idtype, id, options) |
Returns the result of waiting for a process or processes. [extrait de waitid.__doc__] |
waitpid(pid, options) |
Wait for completion of a given child process. [extrait de waitpid.__doc__] |
waitstatus_to_exitcode(status) |
Convert a wait status to an exit code. [extrait de waitstatus_to_exitcode.__doc__] |
walk(top, topdown=True, onerror=None, followlinks=False) |
Directory tree generator. [extrait de walk.__doc__] |
WCOREDUMP(status) |
Return True if the process returning status was dumped to a core file. [extrait de WCOREDUMP.__doc__] |
WEXITSTATUS(status) |
Return the process return code from status. [extrait de WEXITSTATUS.__doc__] |
WIFCONTINUED(status) |
Return True if a particular process was continued from a job control stop. [extrait de WIFCONTINUED.__doc__] |
WIFEXITED(status) |
Return True if the process returning status exited via the exit() system call. [extrait de WIFEXITED.__doc__] |
WIFSIGNALED(status) |
Return True if the process returning status was terminated by a signal. [extrait de WIFSIGNALED.__doc__] |
WIFSTOPPED(status) |
Return True if the process returning status was stopped. [extrait de WIFSTOPPED.__doc__] |
write(fd, data) |
Write a bytes object to a file descriptor. [extrait de write.__doc__] |
writev(fd, buffers) |
Iterate over buffers, and write the contents of each to a file descriptor. [extrait de writev.__doc__] |
WSTOPSIG(status) |
Return the signal that stopped the process that provided the status value. [extrait de WSTOPSIG.__doc__] |
WTERMSIG(status) |
Return the signal that terminated the process that provided the status value. [extrait de WTERMSIG.__doc__] |
Améliorations / Corrections
Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.
Emplacement :
Description des améliorations :