ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 자주 사용하는 리눅스 커맨드 (Commonly used Linux commands by ChatGPT)
    Linux 2022. 12. 15. 21:47
    반응형

    ChatGPT에 자주 사용하는 리눅스 커맨드를 알려달라고 하니 10개의 커맨드를 알려줬다.

     

     

    The most commonly used Linux commands

     

    Here are some examples of the most commonly used Linux commands, along with a brief description of what they do:

    1. ls: Lists the files and directories in the current directory. For example, ls would print the names of all the files and directories in the current directory to the terminal.
    2. cd: Changes the current directory. For example, cd Documents would change the current directory to the Documents directory.
    3. mkdir: Creates a new directory. For example, mkdir my_folder would create a new directory called my_folder in the current directory.
    4. rmdir: Removes an empty directory. For example, rmdir my_folder would remove the empty my_folder directory.
    5. touch: Creates a new, empty file. For example, touch my_file.txt would create a new, empty file called my_file.txt in the current directory.
    6. cp: Copies a file or directory. For example, cp my_file.txt my_file_copy.txt would copy the file my_file.txt and create a new file called my_file_copy.txt with the same contents.
    7. mv: Moves or renames a file or directory. For example, mv my_file.txt my_folder would move the file my_file.txt into the my_folder directory.
    8. less: Views the contents of a file. For example, less my_file.txt would display the contents of the my_file.txt file in the terminal, allowing you to scroll through it using the arrow keys.
    9. cat: Prints the contents of a file to the terminal. For example, cat my_file.txt would print the entire contents of the my_file.txt file to the terminal.
    10. grep: Searches for a pattern in a file or files. For example, grep "hello" my_file.txt would search the my_file.txt file for lines that contain the word "hello" and print them to the terminal.

    These are just a few examples of how the most commonly used Linux commands can be used. For more information and a complete list of options and arguments for each command, you can refer to the Linux documentation or other resources online.

     

     

     
    반응형

    'Linux' 카테고리의 다른 글

    Bash script cheatsheet  (0) 2022.09.06
    리눅스 - keepalive 설정  (0) 2022.08.12
    shell 2> &1 의미  (0) 2022.06.17
    Linux - 유저 그룹 권한  (0) 2022.06.17
    Linux - 모니터링(cpu, 메모리)  (0) 2022.06.11

    댓글

Designed by Tistory.