pwd
outputs the name of the current working directory.ls
lists all files and directories in the working directory.cd
switches you into the directory you specify.mkdir
creates a new directory in the working directory.touch
creates a new file inside the working directory.
In addition to -a
, the ls
command has a several more options. Here are three common options:
-a
- lists all contents, including hidden files and directories-l
- lists all contents of a directory in long format-t
- order files and directories by the time they were last modified.
Here, ls -alt
lists all contents, including hidden files and directories, in long format, ordered by the date and time they were last modified.
The cp
command copies files or directories. Here, we copy the contents of frida.txt into lincoln.txt.
'Unix/Linux' 카테고리의 다른 글
Housekeeping? (0) | 2015.11.08 |
---|---|
쉘 프로그래밍 기초 이해 (0) | 2015.07.26 |
쉘/커널/배쉬 (0) | 2015.07.23 |
Command line2 (0) | 2015.07.21 |