Useful Basic Linux Commands
- 2023年1月17日
- 技術情報
Today, I would like to share some useful basic linux commands. Let’s take a look at the following commands.
- cd – changes the current working directory
- pwd – prints the current working directory
- ls – lists the contents of a directory
- mkdir – creates a new directory
- touch – creates a new empty file
- ln – creates a link to a file or directory
- cp – copies a file or directory
- mv – moves a file or directory
- rm – removes a file or directory
- echo – prints a message to the terminal
- less – views a file with pagination
- cat – displays/print the contents of a file
- grep – searches for a pattern in a file
- head – displays the first few lines of a file
- tail – displays the last few lines of a file
- clear – clears the terminal screen
- uname – displays information about the system
- whoami – displays the current user
- passwd – changes the password for a user
- df – displays information about disk space on mounted filesystems.
- ps – displays information about running processes
- sudo – allows a user to run a command as a root (superuser)
- mount – mounts a filesystem
- chmod – changes the permissions of a file or directory
- chown – changes the ownership of a file or directory
- zip – compresses files into a zip archive
- unzip – extracts files from a zip archive
- tar – compresses and archive files and directories
- kill – sends a signal to a process to terminate
- killall – terminates all processes by name
- apt – a package manager for Debian-based systems
- wget – downloads a file from internet
- whereis – displays the locations of a command
- whatis – displays a short description of a command
- man – displays the manual page for a command
This is all for now. The details of each command can be explored with ‘man’ command by yourself.
Hope you enjoy that.
By asahi
waithaw at 2023年01月17日 10:00:00