s3cmdcommand we are going to cover will list all available data ( objects ) under our AWS s3 account. This will list all, buckets, directories and files:
$ s3cmd la
ERROR: S3 error: 409 (BucketAlreadyExists). The first bucket we are going to create will be called
$ s3cmd mb s3://linuxconfigorg Bucket 's3://linuxconfigorg/' createdRead more ...
Movie Player requires additional plugins to decode this file. The following plugins are required : MPEG-4-AAC decoder and H.264 decoder
# apt-get install sudoOnce sudo is installed run:
# visudowhich allows you to edit the content of
/etc/sudoersfile. Change the content of this file as show below:
Defaults env_reset Defaults mail_badpass Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" root ALL=(ALL:ALL) ALL %admin ALL=(ALL) ALL %sudo ALL=(ALL:ALL) ALLRead more ...
tune2fsfilesystem managing utility. Using
tune2fswe can export some important information related to filesystem health check. The following command will tell as when was the last time the filesystem
# tune2fs -l /dev/sdbX | grep Last\ c Last checked: Sun Dec 13 09:14:22 2015Anther useful information which can be retrieved by
tune2fscommand relates to how many times our
/dev/sdXfilesystem was mounted:
# tune2fs -l /dev/sdbX | grep Mount Mount count: 157Read more ...
# yum install pptpRead more ...
nf_conntrack_pptpas a sample module. Replace the name of this module with a module name you wish to load.
/etc/sysconfig/modules/directory with a file extension
modules. Where the name of the script can be any name of your choice. In our case the script will be called
nf_conntrack_pptp.modules. Enter a following code into your new
nf_conntrack_pptp.modulesscript while replacing the name of the module with the one you wish to load:
#!/bin/sh exec /sbin/modprobe nf_conntrack_pptp >/dev/null 2>&1Read more ...
mysqladmincommand directly from a shell command line. The following command will change/update a current MySQL root password given that current password is blank:
# mysqladmin -u root password 'newpass'Read more ...
/bootmount point is mounted separately and has a limited disk space
$ df -h /boot/ Filesystem Size Used Avail Use% Mounted on /dev/sda1 331M 198M 112M 64% /bootRead more ...
#!/usr/bin/env python3 # Python Version: 3.4.2 # bs4 version: 4.3.2-2 from urllib.request import urlopen from bs4 import BeautifulSoup html = urlopen("http://gnu.org") # Insert your URL to extract bsObj = BeautifulSoup(html.read()); for link in bsObj.find_all('a'): print(link.get('href'))Read more ...
/var/log/nginx/error.logrespectively. This default behaviour is set by the following directives found within
access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log;Read more ...