Docs

linux_bash.html

Linux Bash Commands

d
Command Description Example Usage
ls list items in a directory ls /home/
pwd print working directory
whoami print effective userid
whatis display one-line manual page descriptions whatis ifconfig
whereis locate the binary, source, and manual page files for a command whereis mate-terminal
cp copy a file or folder cp a.file b.file
mv move a file oder folder mv a.file Documents/b.file
rm delete a file rm example.file
mkdir create a directory mkdir Examples
rmdir delete a directory rmdir Documents/Examples
touch change a timestamp of a file touch a.file
man shows the manual for a specified command man systemctl
sudo executes a command with root privileges sudo passwd root
systemctl start, stop, restart, reload or read status of a system service systemctl status sshd
shutdown -r -h now '/seconds' restarts the computer