Electron Proton
  • Home
  • Linux Command Reference
  • Linux
  • C code
  • programming
  • python
  • debugging
  • HPC
  • MPI
  • Linux tools
  • About
lsof command examples

lsof command examples

May 20, 2018

lsof – list open files Also, see fuser which serves the same purpose as lsof. You may have faced problems while unmounting a filesystem or deleting a folder in Linux. You cannot perform folder (directory) delete/move operations while it is being used. You cannot unmount a filesystem while it is being used, whether it is …

nfsstat command examples

nfsstat command examples

May 20, 2018

nfsstat – list NFS statistics #nfsstat -o all -234 Show all information about all versions of NFS. #nfsstat –verbose -234 Same as above. #nfsstat -o all Show all information about active versions of NFS. #nfsstat –nfs –server -3 Show statistics for NFS version 3 server. #nfsstat -m Show information about mounted NFS filesystems.  

pam_tally2 command examples

pam_tally2 command examples

May 20, 2018

pam_tally2 – The login counter (tallying) module Add the following line to /etc/pam.d/login to lock the account after 4 failed logins. Root account will be locked as well. The accounts will be automatically unlocked after 20 minutes. The module does not have to be called in the account phase because the login calls pam_setcred correctly. …

pam timestamp check command examples

pam timestamp check command examples

May 20, 2018

pam_timestamp_check – Check to see if the default timestamp is valid #auth sufficient pam_timestamp.so verbose auth required pam_unix.so session required pam_unix.so session optional pam_timestamp.so  

partx command examples

partx command examples

May 20, 2018

partx – tell the Linux kernel about the presence and numbering of on-disk partitions #partx –show /dev/sdb3 #partx –show –nr 3 /dev/sdb #partx –show /dev/sdb3 /dev/sdb All three commands list partition 3 of /dev/sdb. #partx –show – /dev/sdb3 Lists all subpartitions on /dev/sdb3 (the device is used as whole-disk). #partx -o START -g –nr 5 …

pivot_root command examples

pivot_root command examples

May 20, 2018

pivot_root – change the root filesystem Change the root file system to /dev/hda1 from an interactive shell: mount /dev/hda1 /new-root cd /new-root pivot_root . old-root exec chroot . sh dev/console 2>&1 umount /old-root Mount the new root file system over NFS from 10.0.0.1:/my_root and run init: ifconfig lo 127.0.0.1 up # for portmap # configure …

pppd command examples

pppd command examples

May 20, 2018

pppd – Point-to-Point Protocol Daemon The following examples assume that the /etc/ppp/options file contains the auth option (as in the default /etc/ppp/options file in the ppp distribution). Probably the most common use of pppd is to dial out to an ISP. This can be done with a command such as #pppd call isp where the …

readprofile command examples

readprofile command examples

May 20, 2018

readprofile – read kernel profiling information Browse the profiling buffer ordering by clock ticks: #readprofile | sort -nr | less Print the 20 most loaded procedures: #readprofile | sort -nr +2 | head -20 Print only filesystem profile: #readprofile | grep _ext2 Look at all the kernel information, with ram addresses: #readprofile -av | less …

route command examples

route command examples

May 20, 2018

route – show / manipulate the IP routing table #route add -net 127.0.0.0 netmask 255.0.0.0 dev lo adds the normal loopback entry, using netmask 255.0.0.0 and associated with the “lo” device (assuming this device was previously set up correctly with ifconfig. #route add -net 192.56.76.0 netmask 255.255.255.0 dev eth0 adds a route to the local …

rpcinfo command examples

rpcinfo command examples

May 15, 2018

$rpcinfo — report RPC information To show all of the RPC services registered on the local machine use: example% rpcinfo To show all of the RPC services registered with rpcbind on the machine named klaxon use: example% rpcinfo klaxon The information displayed by the above commands can be quite lengthy. Use the -s option to …

Posts navigation

Newer Posts
Older Posts
Contact Us | Privacy Policy
© 2023 Electron Proton