#cli#file#linux

This command lists the file system showing used and available space. Add --total flag to display a sum of all resources at the bottom.

df -h
copy
#cli#file

Copy file to the same directory. Put the name of the file you want to copy after the 'cp' command followed with the name of the new copied file.

cp file-to-copy.txt new-copied-file.txt
copy
#cli#file

Navigate to the directory you want your file to sit in. The command will create a file with a specified name.

touch your-new-file.js
copy
#cli#nano

Open document in Nano editor.

nano file-to-edit.js
copy
#cli#linux

Display all groups user belongs to.

groups user-name
copy
#cli#tooling

Htop is a useful tool for monitoring your system's performance. It displays CPU, RAM, and swap file usage. It also lists all of the running processes.

htop
copy
#cli#linux

This command lists all sites enabled on the server.

apache2ctl -S
copy
#cli#packages

Lists all installed packages in your Linux/Unix environment.

dpkg --list
copy
#cli

Creates a new directory using the second parameter as a name.

mkdir new-directory
copy
#cli#file#linux

Adds executable permissions to a file.

chmod +x filename.html
copy
#cli#file

Move file to a different directory.

mv [file name] [new location]
// i.e.
mv file-to-move.js ./new/directory/for/the/file
copy
#cli#folder

Move with all the files to a different directory.

mv folder-name/* /new/destination/folder/
copy
#cli

Ping command lets you check the status of the domain name or an IP address

ping domain-to-ping.com
copy
#cli#file

This command lets you preview the contents of the file directly in the console.

cat file-to-preview.js
copy
#cli#packages

This command will uninstall a given package with all the config files.

sudo apt-get --purge remove package-name
copy
Sitemap Git repository