Search in all branches in the repo
git grep "search_term" $(git branch -a --format "%(refname)")
Sharing Knowledge | System Admin Articles
Search in all branches in the repo
git grep "search_term" $(git branch -a --format "%(refname)")
cat app.json | jq --arg environment "VVPAT" --arg test "0102023" '.myapp.configuration.labels += {environment: $environment, test:$test}' > modified_app.json
In GitHub Action workflows, there is no direct way to repeat the same job or step using variables. We have to use the "matrix" to achieve this.
Example:
vi /var/lib/jenkins/config.xml file.
service jenkins restart
[root@linux_server1 boot]# dracut -f /boot/initramfs-2.6.39-400.298.2.el6uek.x86_64.img 2.6.39-400.298.2
E: Failed to install /etc/system-fips
[root@linux_server1 boot]# ls -l /boot/initramfs-2.6.39-400.298.2.el6uek.x86_64.img
ls: cannot access /boot/initramfs-2.6.39-400.298.2.el6uek.x86_64.img: No such file or directory
[root@linux_server1 boot]# touch /etc/system-fips
[root@linux_server1 boot]# dracut -f /boot/initramfs-2.6.39-400.298.2.el6uek.x86_64.img 2.6.39-400.298.2.el6uek.x86_64
[root@linux_server1 boot]# ls -l /boot/initramfs-2.6.39-400.298.2.el6uek.x86_64.img
-rw------- 1 root root 31035863 May 21 03:06 /boot/initramfs-2.6.39-400.298.2.el6uek.x86_64.img
xrags -a-n1 -P50 -I{} sh -c "ssh -q {} 'df -Ph /var' "
xrags -a-n1 -P50 -I"server" sh -c "scp server:/tmp/"
[root@linux_server1 ~]# rpm -qlp telnet-0.17-48.el6.x86_64.rpm
/usr/bin/telnet
/usr/share/man/man1/telnet.1.gz
[root@linux_server1 ~]#
[root@linux_server1 ~]# rpm -q -filesbypkg -p numactl-devel-2.0.9-2.el6.x86_64.rpm
numactl-devel /usr/include/numa.h
numactl-devel /usr/include/numacompat1.h
numactl-devel /usr/include/numaif.h
numactl-devel /usr/lib64/libnuma.a
numactl-devel /usr/lib64/libnuma.so
[root@linux_server1 ~]#
[root@linux_server1 ~]# repoquery --list telnet
/usr/bin/telnet
/usr/share/man/man1/telnet.1.gz
[root@linux_server1 ~]#
[root@linux_server1 ~]# rpm -qp --scripts sysstat-9.0.4-33.el6.x86_64.rpm
postinstall scriptlet (using /bin/sh):
/sbin/chkconfig --add sysstat
preuninstall scriptlet (using /bin/sh):
if [ "$1" = 0 ]; then
# Remove sa logs if removing sysstat completely
rm -f /var/log/sa/*
# Remove service
/sbin/chkconfig --del sysstat
fi
[root@linux_server1 ~]#
rpm -ql sysstat-9.0.4-33.el6.x86_64
rpm -q --scripts sysstat-9.0.4-33.el6.x86_64
root@linux_server1~]# rpm2cpio telnet-0.17-48.el6.x86_64.rpm | cpio -idmv
./usr/bin/telnet
./usr/share/man/man1/telnet.1.gz
220 blocks