- ๋ช ๋ น์ด
- /usr/bin์ ์ค์น๋์ด์๋ ์คํ ํ๋ก๊ทธ๋จ
- shell์ ๋ด์ฅ๋ ๋ช ๋ น์ด
- shell ํจ์
- ๋ณ์นญ
- ๋ช ๋ น์ด ํ์ธ
[eunhye@computer ~]$ type cd
cd is a shell builtin
[eunhye@computer ~]$ type ls
ls is /bin/ls
[eunhye@computer ~]$ which cd
/usr/bin/cd
[eunhye@computer ~]$ which ls
/bin/ls
- ๋ช ๋ น์ด ๋์๋ง ๋ณด๊ธฐ
[eunhye@computer ~]$ help cd #help | ์ฐพ๊ณ ์ถ์ ๋ช
๋ น์ด(๊ฐ๋จํ)
cd: cd [-L|-P] [dir]
Change the current directory to DIR. The variable $HOME is the
default DIR. The variable CDPATH defines the search path for
the directory containing DIR. Alternative directory names in CDPATH
are separated by a colon (:). A null directory name is the same as
the current directory, i.e. `.'. If DIR begins with a slash (/),
then CDPATH is not used. If the directory is not found, and the
shell option `cdable_vars' is set, then try the word as a variable
name. If that variable has a value, then cd to the value of that
variable. The -P option says to use the physical directory structure
instead of following symbolic links; the -L option forces symbolic links
to be followed.
์น์ | ๋ด์ฉ |
1 | ์ฌ์ฉ์ ๋ช ๋ น์ด |
2 | ์ปค๋ ์์คํ ์ฝ API |
3 | C ๋ผ์ด๋ธ๋ฌ๋ฆฌ API |
4 | ์ฅ์น ๋ ธ๋ ๋ฐ ๋๋ผ์ด๋ฒ์ ๊ฐ์ ํน์ ํ์ผ |
5 | ํ์ผ ํฌ๋งท |
6 | ์คํฌ๋ฆฐ์ธ์ด๋ฒ์ ๊ฐ์ ๊ฒ์์ด๋ ๋ฏธ๋์ด ํ์ผ |
7 | ๊ทธ ์ธ ์ฌ๋ฌ ์ข ๋ฅ |
8 | ์์คํ ๊ด๋ฆฌ์ฉ ๋ช ๋ น์ด |
[eunhye@computer ~]$ man cd #man | ์ฐพ๊ณ ์ถ์ ๋ช
๋ น์ด
BUILTIN(1) BSD General Commands Manual BUILTIN(1)
NAME
builtin, !, %, ., :, @, {, }, alias, alloc, bg, bind, bindkey, break,
breaksw, builtins, case, cd, chdir, command, complete, continue, default,
dirs, do, done, echo, echotc, elif, else, end, endif, endsw, esac, eval,
exec, exit, export, false, fc, fg, filetest, fi, for, foreach, getopts,
glob, goto, hash, hashstat, history, hup, if, jobid, jobs, kill, limit,
local, log, login, logout, ls-F, nice, nohup, notify, onintr, popd,
printenv, pushd, pwd, read, readonly, rehash, repeat, return, sched, set,
setenv, settc, setty, setvar, shift, source, stop, suspend, switch,
telltc, test, then, time, times, trap, true, type, ulimit, umask,
unalias, uncomplete, unhash, unlimit, unset, unsetenv, until, wait,
where, which, while -- shell built-in commands
SYNOPSIS
builtin [-options] [args ...]
DESCRIPTION
Shell builtin commands are commands that can be executed within the run-
ning shell's process. Note that, in the case of csh(1) builtin commands,
the command is executed in a subshell if it occurs as any component of a
:
[eunhye@computer ~]$ man 5 passwd #man | ์น์
๋ฒํธ | ์ฐพ๊ณ ์ถ์ ๋ช
๋ น์ด
PASSWD(5) BSD File Formats Manual PASSWD(5)
NAME
passwd, master.passwd -- format of the password file
DESCRIPTION
The /etc/passwd file is a legacy BSD 4.3 format file. It is mostly
unused, but is updated by some utility programs. Its format is similar
to the /etc/master.passwd file, except that it does not contain the
class, change, and expire fields described below.
The /etc/master.passwd file comprises newline separated records, one per
user. Each line contains ten colon (``:'') separated fields. These
fields are as follows:
name User's login name.
password User's encrypted password.
uid User's id.
gid User's login group id.
:
[eunhye@computer ~]$ apropos passwd
chkpasswd(8) - verifies user password against various systems
firmwarepasswd(8) - tool for setting and removing firmware passwords on a system
htpasswd(1) - Manage user files for basic authentication
kpasswd(1) - Kerberos 5 password changing program
kpasswdd(8) - Kerberos 5 password changing server
ldappasswd(1) - change the password of an LDAP entry
passwd(1) - modify a user's password
passwd(5), master.passwd(5) - format of the password file
slapd-passwd(5) - /etc/passwd backend to slapd
slappasswd(8) - OpenLDAP password utility
[eunhye@computer ~]$ whatis ls
ls(1) - list directory contents
๋ช ๋ น์ด | ์คํ |
? | ๋ช ๋ น์ด ๋์๋ง ๋ณด๊ธฐ |
ํ์ด์ง์ or ๋ฐฑ์คํ์ด์ค | ์ด์ ํ์ด์ง ๋ณด๊ธฐ |
ํ์ด์ง๋ค์ด or ์คํ์ด์ค๋ฐ | ๋ค์ ํ์ด์ง ๋ณด๊ธฐ |
n | ๋ค์ - ๋ค์ ๋ ธ๋ ๋ณด๊ธฐ |
p | ์ด์ - ์ด์ ๋ ธ๋ ๋ณด๊ธฐ |
u | ์๋ก - ํ์ฌ ํ์๋ ๋ ธ๋์ ์์ ๋ ธ๋(์ฃผ๋ก ๋ฉ๋ด) ๋ณด๊ธฐ |
์ํฐ | ํ์ฌ ์ปค์ ์์น์ ์๋ ํ์ดํผ๋งํฌ๋ก ์ด๋ํ๊ธฐ |
q | ์ข ๋ฃํ๊ธฐ |
[eunhye@computer ~]$ info coreutils
File: dir Node: Top This is the top of the INFO tree
This (the Directory node) gives a menu of major topics.
Typing "d" returns here, "q" exits, "?" lists all INFO commands, "h"
gives a primer for first-timers, "mEmacs<Return>" visits the Emacs topic,
etc.
In Emacs, you can click mouse button 2 on a menu item or cross reference
to select it.
--- PLEASE ADD DOCUMENTATION TO THIS TREE. (See INFO topic first.) ---
* Menu: The list of major topics begins on the next line.
Emacs
* Ada mode: (ada-mode). The GNU Emacs mode for editing Ada.
* Autotype: (autotype). Convenient features for text that you enter frequently
in Emacs.
* CC Mode: (ccmode). Emacs mode for editing C, C++, Objective-C,
Java, Pike, and IDL code.
* CL: (cl). Partial Common Lisp support for Emacs Lisp.
* Dired-X: (dired-x). Dired Extra Features.
* EUDC: (eudc). A client for directory servers (LDAP, PH)
* Ebrowse: (ebrowse). A C++ class browser for Emacs.
* Ediff: (ediff). A visual interface for comparing and merging programs.
-----Info: (dir)Top, 87 lines --Top---------------------------------------------
- info :
- README ๋ฐ ๊ธฐํ ํ๋ก๊ทธ๋จ ๋ฌธ์ ํ์ผ๋ค
- ๋ณ์นญ์ผ๋ก ๋๋ง์ ๋ช ๋ น์ด ๋ง๋ค๊ธฐ
[eunhye@computer ~]$ type now
-bash: type: now: not found
[eunhye@computer ~]$ alias now='pwd'
[eunhye@computer ~]$ now
/Users/eunhye
[eunhye@computer ~]$ alias
alias now='pwd'
[eunhye@computer ~]$ unalias now
[eunhye@computer ~]$ type now
-bash: type: now: not found
'Linux > Shell' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
SSHPASS๋ฅผ ์ด์ฉํ ๋คํธ์ํฌ ์ฅ๋น OS ํ์ธ Shell Script (0) | 2021.06.15 |
---|---|
Shell์ ์์ ํ์ผ? ๋ก๊ทธ์ธ Shell? ๋น๋ก๊ทธ์ธ Shell? (0) | 2020.07.02 |
4. ํ์ผ๊ณผ ๋๋ ํ ๋ฆฌ ์กฐ์ (0) | 2020.06.06 |
3. ์์คํ ์ดํด๋ณด๊ธฐ (0) | 2020.06.06 |
2. ํ์ผ์์คํ ํ์ (0) | 2020.06.06 |