# docker pull linuxconfig/cran-rRead more ...
savecommand to save your image locally as ordinary tar archive archive and the copy and re-deploy it on another docker system. For example here we first make a backup of our docker image eg.
# docker save linuxconfig > linuxconfig.tarThe above command have created a tarball of our local docker image
linuxconfigwhich we now can move to another system and re-deploy it with Docker's command
# docker load -i linuxconfig.tarRead more ...
from sys import argv name, first, second, third, fourth = argv print "Script name is:", name print "Your first argument is:", first print "Your second argument is:", second print "Your third argument is:", third print "Your fourth argument is:", fourth # Alternatively we can access "argv" argument list directly using range. For exmaple: # Print all arguments except script name print argv[1:] # Print second argument print argv # Print second and third argument print argv[2:4] # Print last argument print argv[-1]Read more ...
$ wget ftp://rpmfind.net/linux/opensuse/factory/repo/oss/suse/x86_64/hello-2.9-4.3.x86_64.rpm $ ls hello-2.9-4.3.x86_64.rpmNow we have an option extract all or a single file from the above RPM package archive. The following command will extract all file into our current working directory:
$ rpm2cpio hello-2.9-4.3.x86_64.rpm | cpio -id 525 blocks $ ls hello-2.9-4.3.x86_64.rpm usrRead more ...
arcommand. First, let's download a sample debian package
$ wget http://ftp.us.debian.org/debian/pool/main/h/hello/hello_2.10-1_amd64.debNow, that we have downloaded our sample Debian package we can use
arcommand to list its content. This can be achieved by
$ ar t hello_2.10-1_amd64.deb debian-binary control.tar.gz data.tar.xzRead more ...
ffmpeg. The most common process to shrink the file size is to use
ffmpegand reduce bitrate. Before we begin let's first get some statistics about our sample mp4 video file
$ ffmpeg -i foo.mp4 ... 17015 kb/s, 29.99 fps, 30 tbr, 90k tbn, 180k tbc (default) ...Read more ...
loadkeyscommand. If the
loadkeyscommand is unavailable install
# yum install kbdAs for an example the following command will temporarily change system's keymap to Slovak:
# loadkeys sk Loading /lib/kbd/keymaps/xkb/sk.map.gzTo list all available keymaps on your CentOS system run:
# localectl list-keymapsRead more ...
http://www.skype.com/en/download-skype/skype-for-linux/and download a Fedora i386 skype package. At the time of writing the package version is
skype-188.8.131.52-fedora.i586.rpm. Once downloaded run the below
yumcommand as a privileged user to install Skype on your CentOS linux system:
# yum localinstall skype-184.108.40.206-fedora.i586.rpmRead more ...
dmidecodecommand. If you currently do not have
dmidecodeavailable on your Linux system you can install it by:
UBUNTU/DEBIAN # apt-get install dmidecode CENTOS/FEDORA # yum install dmidecodenext, using
dmidecodewe can obtain some hardware information about our battery:
# dmidecode -t 22 # dmidecode 2.12 SMBIOS 2.6 present. Handle 0x002E, DMI type 22, 26 bytes Portable Battery Location: Rear Manufacturer: LGC Name: 42T4942 Design Capacity: 93240 mWh Design Voltage: 11100 mV SBDS Version: 03.01 Maximum Error: Unknown SBDS Serial Number: 073C SBDS Manufacture Date: 2012-03-23 SBDS Chemistry: LION OEM-specific Information: 0x00000000Read more ...
lspcicommand to obtain a bus-id, manufacturer and model of all available network cards:
# lspci | grep Network 00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04) 03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (rev 34)Read more ...