Author Topic: Basic Command codes worthy of note - worked from the days of old!  (Read 113 times)

c.dasylva

  • Newbie
  • *
  • Posts: 2
  • Nothing is good or bad unless by comparism.
    • View Profile
1. pwd — When you first open the terminal, you are in the home directory of your user. To know which directory you are in, you can use the “pwd” command.

2. ls — Use the "ls" command to know what files are in the directory you are in. You can see all the hidden files by using the command “ls -a”.

3. cd — Use the "cd" command to go to a directory.

4. mkdir & rmdir — Use the mkdir command when you need to create a folder or a directory.

5. rm — Use the rm command to delete files and directories.

6. touch — The touch command is used to create a file.

7. man & --help — To know more about a command and how to use it, use the man command.

8. cp — Use the cp command to copy files through the command line.

9. mv — Use the mv command to move files through the command line.

10. locate — The locate command is used to locate a file in a Linux system, just like the search command in Windows.



Intermediate Commands

1. echo — The "echo" command helps us move some data, usually text into a file.

2. cat — Use the cat command to display the contents of a file.

3. nano, vi, jed — nano and vi are already installed text editors in the Linux command line.

4. sudo — A widely used command in the Linux command line, sudo stands for "SuperUser Do".

5. df — Use the df command to see the available disk space in each of the partitions in your system.

6. du — Use du to know the disk usage of a file in your system.

7. tar — Use tar to work with tarballs (or files compressed in a tarball archive) in the Linux command line.

8. zip, unzip — Use zip to compress files into a zip archive, and unzip to extract files from a zip archive.

9. uname — Use uname to show the information about the system your Linux distro is running.

10. apt-get — Use apt to work with packages in the Linux command line. Use apt-get to install packages.

11. chmod — Use chmod to make a file executable and to change the permissions granted to it in Linux.

12. hostname — Use hostname to know your name in your host or network.

13. ping — Use ping to check your connection to a server.
« Last Edit: April 16, 2019, 12:31:06 AM by c.dasylva »
5-Figures monthly is easy when you have the right knowledge