What are some useful commands that i can use in Linux?

Report
Posts
1
Registration date
Sunday July 26, 2020
Status
Member
Last seen
October 18, 2020
-
Posts
8921
Registration date
Friday October 30, 2015
Status
Moderator
Last seen
October 18, 2020
-
I want to learn some useful commands for Linux.

1 reply

Posts
8921
Registration date
Friday October 30, 2015
Status
Moderator
Last seen
October 18, 2020
870
Hi,

Depending on what you are looking to run as a task, there are many commands that you can use on Linux. Here are some useful commands that you can use with Terminal:
  • cd: go to a directory. (e.g. If you want to go to the "Documents" folder, type
    cd Documents
    ).
  • mkdir: create a directory. Here is the syntax:
    mkdir Directory\Name
    . Use
    \
    to add spaces.
  • rmdir: delete an empty directory.
  • rm: delete files and directories containing files.
  • touch: create a file. (e.g.
    touch newfile.txt
    ).
  • locate: this command is used to locate a file.
  • cat: display the content of a file.
  • man: show the manual page of a command.
  • –help: get help with a command (e.g.
    cd -help
    ).