Comandos Linux para obtener información de comandos

Foro sobre GNU Linux
Guillermo
Site Admin
Mensajes: 362
Registrado: 13 May 2023, 00:32
Ubicación: Valencia - España
Contactar:

Comandos Linux para obtener información de comandos

Mensaje por Guillermo »

type: Este comando se utiliza para describir cómo se interpretaría su argumento si se utilizara como un comando. Por ejemplo, si ejecutas `type ls`, te dirá si `ls` es un comando incorporado en la shell, un alias o un archivo ejecutable.

Código: Seleccionar todo

$ type ls
ls is aliased to `ls --color=auto'
which: Este comando se utiliza para localizar el archivo ejecutable de un comando. Si tienes varios comandos con el mismo nombre en diferentes directorios de tu PATH, `which` te mostrará el que se ejecutaría si lo tecleas en la terminal.

Código: Seleccionar todo

$ which ls
/bin/ls
apropos: Este comando se utiliza para buscar en las páginas del manual de Linux cualquier instancia de una palabra clave. Por ejemplo, si quieres saber todos los comandos relacionados con "directory", puedes usar `apropos directory`.

Código: Seleccionar todo

$ apropos directory
pwd (1)              - imprime el nombre del directorio de trabajo actual (print working directory)
alphasort (3)        - scan a directory for matching entries
basename (1)         - strip directory and suffix from filenames
bf_compact (1)       - shell script to compact a bogofilter directory
bf_compact-bdb (1)   - shell script to compact a bogofilter directory
bf_copy (1)          - shell script to copy a bogofilter working directory
bf_copy-bdb (1)      - shell script to copy a bogofilter working directory
bf_tar (1)           - shell script to write a tar file of a bogofilter directory to stdout
bf_tar-bdb (1)       - shell script to write a tar file of a bogofilter directory to stdout
bindtextdomain (3)   - set directory containing message catalogs
chacl (1)            - change the access control list of a file or directory
chdir (2)            - change working directory
chroot (2)           - change root directory
chroot (8)           - run command or interactive shell with special root directory
closedir (3)         - close a directory
cups-files.conf (5)  - file and directory configuration file for cups
dbus-cleanup-sockets (1) - clean up leftover sockets in a directory
depmod.d (5)         - Configuration directory for depmod
dir (1)              - list directory contents
dirfd (3)            - get directory stream file descriptor
execveat (2)         - execute program relative to a directory file descriptor
fchdir (2)           - change working directory
fdopendir (3)        - open a directory
File::BaseDir (3pm)  - Use the Freedesktop.org base directory specification
File::Listing (3pm)  - Parse directory listing
find (1)             - search for files in a directory hierarchy
futimesat (2)        - change timestamps of a file relative to a directory file descriptor
get_current_dir_name (3) - get current working directory
getcwd (2)           - get current working directory
getcwd (3)           - get current working directory
getdents (2)         - get directory entries
getdents64 (2)       - get directory entries
getdirentries (3)    - get directory entries in a filesystem-independent format
getwd (3)            - get current working directory
git-clone (1)        - Clone a repository into a new directory
git-mv (1)           - Move or rename a file, a directory, or a symlink
git-stash (1)        - Stash the changes in a dirty working directory away
gp-display-html (1)  - generate an HTML based directory structure to browse the profiles
grub-macbless (8)    - bless a mac file/directory
grub-mknetdir (1)    - prepare a GRUB netboot directory.
hattrib (1)          - change HFS file or directory attributes
hcd (1)              - change working HFS directory
hdir (1)             - display an HFS directory in long format
helpztags (1)        - generate the help tags file for directory
hls (1)              - list files in an HFS directory
hmkdir (1)           - create a new HFS directory
hpwd (1)             - print the full path to the current HFS working directory
hrename (1)          - rename or move an HFS file or directory
hrmdir (1)           - remove an empty HFS directory
lookup_dcookie (2)   - return a directory entry's path
ls (1)               - list directory contents
mariadb-install-db (1) - initialize MariaDB data directory (mysql_install_db is now a symlink to mariadb-install-db)
mcd (1)              - change MSDOS directory
mdeltree (1)         - recursively delete an MSDOS directory and its contents
mdir (1)             - display an MSDOS directory
mdu (1)              - display the amount of space occupied by an MSDOS directory
mkdir (2)            - create a directory
mkdirat (2)          - create a directory
mkdtemp (3)          - create a unique temporary directory
mkfontdir (1)        - create an index of X font files in a directory
mklost+found (8)     - create a lost+found directory on a mounted Linux second extended file system
mktemp (1)           - create a temporary file or directory
mmd (1)              - make an MSDOS subdirectory
mmove (1)            - move or rename an MSDOS file or subdirectory
modprobe.d (5)       - Configuration directory for modprobe
mountpoint (1)       - see if a directory or file is a mountpoint
mrd (1)              - remove an MSDOS subdirectory
mysql_install_db (1) - initialize MariaDB data directory (mysql_install_db is now a symlink to mariadb-install-db)
ntfsls (8)           - list directory contents on an NTFS filesystem
opendir (3)          - open a directory
pam_mkhomedir (8)    - PAM module to create users home directory
pwdx (1)             - report current working directory of a process
readdir (2)          - read directory entry
readdir (3)          - read a directory
readdir (3am)        - directory input parser for gawk
readdir_r (3)        - read a directory
remove (3)           - remove a file or directory
rewinddir (3)        - reset directory stream
rmdir (2)            - delete a directory
run-parts (8)        - run scripts or programs in a directory
samba-dcerpcd (8)    - This is one of Samba's DCERPC server processes that can listen on sockets where RPC services a...
scandir (3)          - scan a directory for matching entries
scandirat (3)        - scan a directory for matching entries
seekdir (3)          - set the position of the next readdir() call in the directory stream.
smbcacls (1)         - Set or get ACLs on an NT file or directory names
telldir (3)          - return current location in directory stream
Tk::chooseDirectory (3pm) - pops up a dialog box for the user to select a directory.
vdir (1)             - list directory contents
versionsort (3)      - scan a directory for matching entries
vfs_dirsort (8)      - Sort directory contents
vfs_streams_depot (8) - EXPERIMENTAL module to store alternate data streams in a central directory.
x86_64-linux-gnu-gp-display-html (1) - generate an HTML based directory structure to browse the profiles
whereis: Este comando localiza el archivo binario, el código fuente y la página del manual de un comando.

Código: Seleccionar todo

$ whereis ls
ls: /bin/ls /usr/share/man/man1/ls.1.gz
Responder