Electron Proton
  • Home
  • Linux Command Reference
  • Linux
  • C code
  • programming
  • python
  • debugging
  • HPC
  • MPI
  • Linux tools
  • About
pip list – exits with error “TypeError: ‘module’ object is not callable”

pip list – exits with error “TypeError: ‘module’ object is not callable”

January 21, 2020

Issue: # pip list Traceback (most recent call last): File “/app/python/2.7.16/bin/pip”, line 11, in <module> sys.exit(main()) TypeError: ‘module’ object is not callable   Resolution: # python -m pip install –upgrade pip Where option “-m” – run library module as a script (terminates option list)   Explanation: A broken pip installation can cause this issue. By …

fcoeadm command examples

fcoeadm command examples

August 28, 2018

fcoeadm – The Open-FCoE Administration Tool Creates an FCoE instance on eth2.101 fcoeadm -c eth2.101 Creates an FCoE VN2VN instance on eth2.101 fcoeadm -m vn2vn -c eth2.101 Destroys the FCoE instance on eth2.101 fcoeadm -d eth2.101 Resets the FCoE instance on eth2.101 fcoeadm -r eth2.101 Show the information of all the adapters and their ports …

Reading Digital sensor using Arduino

Reading Digital sensor using Arduino

July 14, 2018

This post explains how to read digital sensor using Arduino. Arduino is a Single Board Microcontroller(SBM) used for building electronic projects. It consists of both physical and programmable circuit board. To program Arduino,  we need an IDE(Integrated Development Environment). This can be downloaded from here: https://www.arduino.cc/en/Main/Software Program Structure The structure of an Arduino programming language must contain at …

fcnsq command examples

fcnsq command examples

July 9, 2018

fcnsq – Fibre Channel Name Server Query Tool Query Get Port Name (GPN) from host12 for Port ID 0xbf0027 fcnsq host12 –gpn bf0027 Query Get Node Name (GNN) from host12 for Port ID 0xbf0027 fcnsq host12 –gnn bf0027 Query Get Symbolic Port Name (GSPN) from host12 for Port ID 0xbf0027 fcnsq host12 –gspn bf0027 Query …

agetty command examples

agetty command examples

July 9, 2018

agetty – alternative Linux getty This section shows examples for the process field of an entry in the /etc/inittab file. You’ll have to prepend appropriate values for the other fields. For a hard-wired line or a console tty: /sbin/agetty 9600 ttyS1 For a directly connected terminal without proper carriage detect wiring: (try this if your terminal …

arp command examples

arp command examples

July 9, 2018

arp – manipulate the system ARP cache ARP stands for Address Resolution Protocol. ARP requests are cached for faster resolutions in your system. /usr/sbin/arp -i eth0 -Ds 10.0.0.2 eth1 pub This will answer ARP requests for 10.0.0.2 on eth0 with the MAC address for eth1. /usr/sbin/arp -i eth1 -d 10.0.0.1 Delete the ARP table entry …

autrace command examples

autrace command examples

July 9, 2018

autrace – a program similar to strace The following illustrates a typical session: autrace /bin/ls /tmp ausearch –start recent -p 2442 -i and for resource usage mode: autrace -r /bin/ls ausearch –start recent -p 2450 –raw | aureport –file –summary ausearch –start recent -p 2450 –raw | aureport –host –summary  

mdmon command examples

mdmon command examples

June 29, 2018

mdmon – monitor MD external metadata arrays #mdmon –all-active-arrays –takeover Any mdmon which is currently running is killed and a new instance is started. This should be run during in the boot sequence if an initramfs was used, so that any mdmon running from the initramfs will not hold the initramfs active.  

blkdeactivate command examples

blkdeactivate command examples

June 29, 2018

blkdeactivate — utility to deactivate block devices Deactivate all supported block devices found in the system. If a device is mounted, skip its deactivation. blkdeactivate Deactivate all supported block devices found in the system. If a device is mounted, unmount it first if possible. blkdeactivate -u Deactivate supplied device together with all its holders. If …

cupsctl command examples

cupsctl command examples

June 29, 2018

cupsctl – configure cupsd.conf options Display the current settings: #cupsctl Enable debug logging: #cupsctl –debug-logging Get the current debug logging state: #cupsctl | grep ‘^_debug_logging’ | awk -F= ‘{print $2}’ Disable printer sharing: #cupsctl –no-share-printers  

Posts navigation

Older Posts
Contact Us | Privacy Policy
© 2022 Electron Proton