Skip to content

GTKC Knowledgebase

A little bit of wisdom

  • Home
  • admin
  • Page 10

Author: admin

Linux

Setting netbios node types in dhcpd.conf

by admin : September 19, 2014July 16, 2021 Linux

dhcpd.conf netbios node types The following is a list of netbios node types, for the ISC dhcp server (should be pertinent to any DHCP server though). # These are the node types for netbios options: #1 = B-node, 2 = P-node, 4 =M-node, 8 = H-node option netbios-node-type 8; # default NetBIOS name resolution mode […]

Linux

How do I allow or deny specific users in SSH?

by admin : September 19, 2014July 16, 2021 Linux

DENY AND ALLOW USERS IN OPENSSH By default, OpenSSH allows logins for anyone with a valid password and shell. However, on a Linux system with numerous system accounts, this can be problematic. Imagine that you’re running a mail server, where each mail user has a system account. If you set up an e-mail account for […]

Linux

How do I create an .iso image from a directory of files?

by admin : September 19, 2014July 16, 2021 Linux

Create an iso image of a directory of files on Linux. mkisofs -J -R -v -T -o image.iso cdrom/ Will build an ISO image of all the files in the /cdrom directory.

Linux

How do I install Perl modules?

by admin : September 19, 2014July 16, 2021 Linux

Installing PERL modules perl -MCPAN -e “shell” Once in the shell: install Some::Module (in the above shell) or using MCPAN without the shell: perl -MCPAN -e “install ‘Some::Module'” or using cpan directly: cpan -i ‘Some::Module’

Linux

Beware of the lsattr command – it can cause confusion!

by admin : September 19, 2014July 16, 2021 Linux

Linux lsattr chattr I was trying to remove an old file from my computer but for some reason was unable to delete it. When I tried to remove it I got the message “rm: cannot unlink ‘filename’: Operation not permitted” I was logged in as root when I tried this command – again unable to […]

Linux

Using awk to filter text files for specific columns of information

by admin : September 19, 2014July 16, 2021 Linux

Using awk to filter specific information. # print column one using space as a separator grep /var/log/maillog.1 | awk ‘{print $1}’ # print column four using : as a separator grep /var/log/maillog.1 | awk -F “:” ‘{print $4}’ Use grep -i for case insensitive search.

Linux

How do I obtain a new root.cache / root.hints file?

by admin : September 19, 2014July 16, 2021 Linux

How to obtain a new root.cache / root.hints file Download via ftp: wget -O named.cache ftp://ftp.internic.net/domain/named.cache Or: Use dig to download records from root server. dig @198.41.0.4 > root.cache Note: Using dig does not seem to get IPV6 records.

Linux

How do I remove duplicate packages in Redhat Package Manager (RPM)?

by admin : September 19, 2014July 16, 2021 Linux

How to remove duplicate packages in rpm rpm -e –allmatches mysql –nodeps Note: This also uninstalls the package(s).

Linux

Get library info for specified executables

by admin : September 19, 2014July 16, 2021 Linux

Linux library info ldd `which smbd` | grep cups e.g. # ldd `which smbd` | grep cups libcups.so.2 => /usr/lib/libcups.so.2 (0x00f76000) # ldd `which perl` | grep perl libperl.so => /usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE/libperl.so (0x00994000)

Linux

How do I set the date and time in Linux?

by admin : September 19, 2014July 16, 2021 Linux

Setting Linux date. Go back 1 hour date –set=’-60 minutes’ Go forward 4 months date –set=’+4 months’ Go back 2 days date –set=’-2 days’

Page navigation

Previous 1 … 8 9 10 11 Next
Copyright © 2023 GTKC Knowledgebase | Powered by Knowx WordPress Theme