Category: command

  • a look into the bash builtin command named “disown”

    [bash light=”true”] $jobs -l $ping gnu.org PING gnu.org (208.118.235.148) 56(84) bytes of data. 64 bytes from wildebeest.gnu.org (208.118.235.148): icmp_seq=1 ttl=53 time=267 ms 64 bytes from wildebeest.gnu.org (208.118.235.148): icmp_seq=2 ttl=53 time=266 ms 64 bytes from wildebeest.gnu.org (208.118.235.148): icmp_seq=3 ttl=53 time=267 ms 64 bytes from wildebeest.gnu.org (208.118.235.148): icmp_seq=4 ttl=53 time=321 ms 64 bytes from wildebeest.gnu.org (208.118.235.148): icmp_seq=5 […]

  • Command for PHP information and configuration

    [php] $php –info phpinfo() PHP Version => 7.3.0RC3 System => Linux debian 4.17.0-3-amd64 #1 SMP Debian 4.17.17-1 (2018-08-18) x86_64 Build Date => Oct 15 2018 09:53:04 Server API => Command Line Interface Virtual Directory Support => disabled Configuration File (php.ini) Path => /etc/php/7.3/cli Loaded Configuration File => /etc/php/7.3/cli/php.ini Scan this dir for additional .ini files […]

  • Typical Bash Shell bind Command Examples

    https://linux.101hacks.com/unix/bind/

  • pstree command usage example with process id as first argument

    ABOUT pstree pstree is a Linux command that shows the running processes as a tree. It is used as a more visual alternative to the ps command. The root of the tree is either init or the process with the given pid. It can also be installed in other Unix systems. TYPICAL COMMANDLINE SESSION [bash] […]

  • Search for a pattern at the beginning of a line using grep

    $ps -e “kworker$” error: unknown sort specifier Usage: ps [options] Try ‘ps –help ‘ or ‘ps –help ‘ for additional help text. For more details see ps(1). $ps -ef | grep “^daemon” daemon 639 1 0 May04 ? 00:00:00 /usr/sbin/atd -f $ps -ef | grep “^rtkit” rtkit 1245 1 0 May04 ? 00:00:00 /usr/lib/rtkit/rtkit-daemon $ps […]

  • Indicate how each name would be interpreted if used as a command name

    $type -a locate locate is /usr/bin/locate $type -a ls ls is aliased to `ls –color=auto’ ls is /bin/ls $type -t ls alias $type -t locate file $type -t /dev/urandom $type -t /dev/sda1 $type -t urandom $type -t sda1 $type -t type builtin $type -t shuf file $type -t bash file $type -t proc $type -t […]

  • sort – sort lines of text files

    $cat test.txt sept aug jan dec oct apr feb mar11 mar1 $sort test.txt apr aug dec feb jan mar1 mar11 oct sept $sort -M test.txt jan feb mar1 mar11 apr aug sept oct dec $

  • GNU Diffutils is a package of several programs related to finding differences between files

    https://www.computerhope.com/unix/udiff.htm

  • command to install build-essential in debian ?

    $sudo apt-get install build-essential Reading package lists… Done Building dependency tree Reading state information… Done build-essential is already the newest version (12.4). The following packages were automatically installed and are no longer required: alsa-base ant ant-optional app-install-data aptdaemon aptdaemon-data bluez-alsa bluez-gstreamer bogofilter bogofilter-bdb bogofilter-common cryptsetup-bin diffstat esound-common espeak-data evolution-webcal firebird2.5-common-doc fonts-lyx fonts-sil-gentium fonts-sil-gentium-basic freerdp-x11 gcalctool […]

  • How do I see where all my big files are?

    $du -sk * | sort -n 4 index.php 4 myicon.png 4 programming 4 python 4 README.md 4 wp-blog-header.php 4 wp-comments-post.php 4 wp-config-sample.php 4 wp-cron.php 4 wp-links-opml.php 4 wp-load.php 4 xmlrpc.php 8 english 8 readme.html 8 testing 8 wp-activate.php 8 wp-mail.php 8 wp-trackback.php 12 commandline 12 github 12 ui 16 webex 16 wp-settings.php 20 knowledge 20 […]