본문 바로가기

Unix/Linux

Command line

  1. pwd outputs the name of the current working directory.
  2. ls lists all files and directories in the working directory.
  3. cd switches you into the directory you specify.
  4. mkdir creates a new directory in the working directory.
  5. 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