User contributions for Ardika Sulistija
A user with 285 edits. Account created on 13 May 2024.
11 September 2024
- 14:0914:09, 11 September 2024 diff hist −1 Ntpd No edit summary current
- 14:0914:09, 11 September 2024 diff hist +267 N Ntpd Created page with "<b>Ntpd</b> - Newtwork Time Protocol Daemon The Network Time Protocol daemon is an operating system program that maintains the system time in synchronization with time servers using the Network Time Protocol. Wikipedia configuration for ntpd: </br> # /etc/ntp.conf,"
- 14:0914:09, 11 September 2024 diff hist +1,213 N Nmcli Created page with "<b>Network Manager Command Line</b> - is used for controlling NetworkManager and reporting network status. ====Check connection status of interfaces==== ---- <b>nmcli dev status</b> # nmcli dev status DEVICE TYPE STATE CONNECTION docker0 bridge connected docker0 virbr0 bridge connected virbr0 enp0s3 ethernet connected enp0s3 virbr0-nic ethernet disconnected -- lo loopback u..."
- 14:0814:08, 11 September 2024 diff hist +4,460 N Nmap Created page with " <b>nmap</b> - "Network Mapper", Network exploration tool and security/port scanner. Very useful for troubleshooting and checking if ports are open/closed/filtered. In comparison to telnet, nmap is actually smart enough that it can tell the difference between a closed port that is truly closed and a closed port behind a firewall. * <b>closed</b> - if a port is truly closed or down. * <b>filtered</b> - blocked by some firewall * <b>open</b> open An application..." current
- 14:0814:08, 11 September 2024 diff hist +3,398 N Nginx Created page with "https://www.tecmint.com/useful-nginx-command-examples/ </br>https://serversforhackers.com/c/redirect-http-to-https-nginx </br>https://linuxize.com/post/redirect-http-to-https-in-nginx/ ====How to find and check Nginx configuration==== ---- $ sudo nginx -t nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful ====How to find php.ini and www.conf==== ---- Find those full file paths using a..." current
- 14:0814:08, 11 September 2024 diff hist +16,794 N Networking and Routing Created page with " This page is mainly about useful networking/routing commands for Linux. ====/etc/sysconfig/network==== ---- Global default gateway configuration is stored in the <b>/etc/sysconfig/network</b> file. This file specifies gateway and host information for all network interfaces. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-the_sysconfig_directory#s2-sysconfig-network https://access.redhat.com/documentation/en-us/red..." current
- 14:0814:08, 11 September 2024 diff hist +475 N NetworkManager Created page with "In RHEL7, the default networking service is provided by <b>NetworkManager</b>, which is a dynamic network control and configuration daemon that attempts to keep network devices and connections up and active when they are available. * Introduced in RHEL7 * Can configure network aliases IP addresses, static routes, DNS information, and VPN connections, as well as many connection-specific parameters. * Traditional <b>ifcfg</b> type configuration files are still supported." current
2 September 2024
- 17:0917:09, 2 September 2024 diff hist +1 Journalctl No edit summary current
- 17:0917:09, 2 September 2024 diff hist +850 Journalctl No edit summary
- 17:0717:07, 2 September 2024 diff hist +1,082 Journalctl No edit summary
27 August 2024
- 00:4900:49, 27 August 2024 diff hist +4,211 N Netstat Created page with "<b>Netstat</b> is a useful command to learn more about the configuration of your system, and can be useful when troubleshooting connectivity issues related to the Transport and IP layer. Its great for checking your networking configuration and activity. Prints information about Linux Networking subsystems, such as routing tables, interface statistics, masquerade connections, and multicast memberships. https://www.tecmint.com/20-netstat-commands-for-linux-network-manage..." current
- 00:4900:49, 27 August 2024 diff hist +307 N Netfilter Created page with "<b>netfilter</b> - iptables, ufw and pf are all wrappers for netfilter, the network filtering module that provides Pre/Post routing, Input/Output, and packets forwarding. You can block packets using the filter table to route packets to other machines using the NAT table and turn the instance into a router." current
- 00:4800:48, 27 August 2024 diff hist +373 N Netcat Created page with "https://www.thegeekstuff.com/2012/04/nc-command-examples/?utm_source=feedburner&utm_medium=email&utm_campaign=Feed%253A+TheGeekStuff+(The+Geek+Stuff) $ nc -zv dikapedia.com 443 Ncat: Version 7.50 ( https://nmap.org/ncat ) Ncat: Connected to 23.20.238.64:443. Ncat: 0 bytes sent, 0 bytes received in 0.03 seconds. To start a listening Netcat process: nc -l -p 1500" current
- 00:4800:48, 27 August 2024 diff hist +351 N NFS Created page with "<b>NFS</b> - Network File System ====How to set up an NFS Server and NFS Client==== ---- I haven't done this yet. I wanted to test it out but haven't gotten the chance. Try: https://www.itzgeek.com/how-tos/linux/centos-how-tos/how-to-setup-nfs-server-on-centos-7-rhel-7-fedora-22.html https://www.howtoforge.com/nfs-server-and-client-on-centos-7" current
- 00:4800:48, 27 August 2024 diff hist +19,830 N MySQL / MariaDB Created page with "MariaDB is a community-developed, commercially supported fork of the MySQL relational database management system. ADD: https://dev.mysql.com/doc/refman/8.0/en/memory-use.html ==== Installation ==== ---- yum install mariadb-server mariadb -y apt-get install mariadb mariadb-server ==== Post-install Configuration ==== ---- (Recommend running these in order) Start the MySQL service: # sysVinit service mysqld start service mariadb start # Systemd systemctl st..." current
- 00:4700:47, 27 August 2024 diff hist +2,128 N Mount Created page with "<b>mount</b> - Command to mount partitions. ---- ====Examples==== ---- Mounts /dev/sdb2 to /mnt/[dir], you would have to create a directory in the /mnt/ directory mount /dev/sdb2 /mnt/[dir] Unmount: umount /dev/sdb2 To view all mounts for further information: mount mount | grep -i /dev/ $ mount | grep /dev/ tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) /dev/nvme0n1p2..." current
- 00:4700:47, 27 August 2024 diff hist +7,433 N Memory Created page with "===What is Memory?=== ---- What is <b>memory</b>? * Just a form of storage. * Computers have many layers of memory, the higher up you go, the slower to access: ** CPU registers (takes 1 CPU cycle) ** CPU cache, (L1, L2, L3) (takes 3 - 14 CPU cycles) ** RAM (~250 CPU cycles) ** Disk (~40 million) <b>Physical Memory</b> vs <b>Virtual memory</b> * Physical memory (aka main memory) memory is provided as a map to the OS. * This map is divided into page frames of 4KB each..." current
- 00:4700:47, 27 August 2024 diff hist +2,524 N MediaWiki Created page with "<strong>Powered by MediaWiki.</strong> Consult the [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents User's Guide] for information on using the wiki software. == Getting started == * [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Configuration_settings Configuration settings list] * [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:FAQ MediaWiki FAQ] * [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release m..." current
- 00:4600:46, 27 August 2024 diff hist +1,407 N MacOS Created page with "====Set Persistent $PATH==== ---- cat /etc/paths /usr/local/bin /usr/bin /bin /usr/sbin /sbin /Users/ardikas/.toolbox/bin ====How to combine split zip files (and extract them)==== ---- When you come across split files that end with sequential numbers (e.g. .001, .002, etc...), before you can use the file, you first need to join the split files together into a single, whole file. A split ZIP file could look like this, for instance: 691-5088-A.zip_.001 691-5..." current
- 00:4100:41, 27 August 2024 diff hist +4,443 N MTR Created page with "https://www.linode.com/docs/networking/diagnostics/diagnosing-network-issues-with-mtr/</br> https://www.tecmint.com/mtr-a-network-diagnostic-tool-for-linux/</br> https://www.datapacket.com/blog/mtr-diagnose-network-issues</br> ADD THIS::: https://www.datapacket.com/blog/mtr-diagnose-network-issues BEST TO RUN WITH TCP FLAG INSTEAD OF DEFAULT ICMP: [May 14, 2020, 1:41 PM] Bawezir, Ahmed: "mtr -P <tcp port> -T -w <destination ip>" When analyzing an MTR output, I loo..." current
- 00:4000:40, 27 August 2024 diff hist +1,145 N Lsusb Created page with "lsusb - list USB devices (This was on Ubuntu 22.04) USB unplugged from system: $ lsusb Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 003: ID 0a5c:5842 Broadcom Corp. 58200 Bus 001 Device 002: ID 0c45:6a1d Microdia Integrated_Webcam_FHD Bus 001 Device 005: ID 8087:0033 Intel Corp. Bus 001 Device 001: ID 1d6..." current
- 00:3900:39, 27 August 2024 diff hist +690 N Lspci Created page with "<b>lspci</b> - list all PCI devices lspci is a utility for displaying information about PCI buses in the system and devices connected to them. It's a good way to determine the make and model of the graphics card in a system without physically inspecting the hardware is the lspci command. $ /sbin/lspci ... 00:02.0 VGA compatible controller: Intel Corporation 82865G Integrated Graphics Controller (rev 02) ... This command will usually tell you the vendor and mode..." current
- 00:3900:39, 27 August 2024 diff hist +3,357 N Lsof Created page with "$ lsof | grep -i del . . (Output cut short) . apache2 151110 www-data DEL REG 0,1 81229715 /dev/zero apache2 151110 www-data DEL REG 0,1 74060991 /dev/zero apache2 151110 www-data 8w REG 259,2 12017916902 512005 /var/log/apache2/access.log (deleted) apache2 151110 www-data 9ur REG 259,2 0 5925 /tmp/.ZendSem.SLoNkY (deleted) apache2 151112 www-data DEL REG 0,1 81229715 /dev/zero apache2 151112 www-..." current
- 00:3900:39, 27 August 2024 diff hist +731 N Lsblk Created page with " $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT nvme0n1 259:0 0 10G 0 disk ├─nvme0n1p1 259:1 0 10G 0 part / └─nvme0n1p128 259:2 0 1M 0 part $ lsblk -f NAME FSTYPE LABEL UUID MOUNTPOINT nvme0n1 ├─nvme0n1p1 xfs / afcf1342-1d40-41bd-bde9-e4ea5d87e3b6 / └─nvme0n1p128..." current
- 00:3900:39, 27 August 2024 diff hist +2,301 N Logs Created page with "https://www.eurovps.com/blog/important-linux-log-files-you-must-be-monitoring/ ====Ubuntu Logs==== ---- https://ubuntu.com/tutorials/viewing-and-monitoring-log-files#2-log-files-locations System logs System logs deal with exactly that - the Ubuntu system - as opposed to extra applications added by the user. These logs may contain information about authorizations, system daemons and system messages. Authorization log Location: /var/log/auth.log Keeps track of auth..." current
- 00:3800:38, 27 August 2024 diff hist +15,492 N Linux Permissions Created page with "<div style='text-align: center;'><span style="font-size:180%;">Users, Groups, and Ownership</span></div> ====Linux Permissions==== ---- =====<u>What are <b>User and Group</b> Permissions?</u>===== * Linux was designed to allow more than one user to have access to the system at the same time. <b>In order for this multiuser design to work properly, there needs to be a method to protect users from each other</b>. * <b>Permissions</b> are the "<..." current
- 00:3800:38, 27 August 2024 diff hist +63 N Linux Directory Structure Created page with "https://www.telecomworld101.com/Linux14-DirectoryStructure.html" current
- 00:3800:38, 27 August 2024 diff hist +809 N Less Created page with "====What is the difference between Less and More?==== ---- more is the oldest, less is an improvement and most is an improvement on that. Short comparison: more: forward navigation and limited backward navigation. less: both forward and backward navigation and also has search options. You can go to the beginning and the end of a file instantly. Plus you can switch to an editor (like open the file in vi or vim). It is noticeably quicker than editor for when the file is..." current
- 00:3700:37, 27 August 2024 diff hist +986 N Last Created page with "https://www.thegeekstuff.com/2009/03/4-ways-to-identify-who-is-logged-in-on-your-linux-system/ <b>last</b> command will give login history for a specific username. If we don’t give any argument for this command, it will list login history for all users. By default this information will read from /var/log/wtmp file. The output of this command contains the following columns: * User name * Tty device number * Login date and time * Logout time * Total working time $ las..." current
- 00:3600:36, 27 August 2024 diff hist +8,745 N LVM Created page with "ADD NOTES: https://xan.manning.io/2017/05/29/best-practice-for-mounting-an-lvm-logical-volume-with-etc-fstab.html (LVM snapshot can cause issues if you mount using UUID!!!) ====LVM Architecture and Terminology==== ---- <b>lvm</b> - Logical Volume Manager/management. * It is a storage device management technology that gives users the power to pool and abstract the physical layout of component storage devices for easier (ha) and flexible administration. * It utilizes..."
- 00:3600:36, 27 August 2024 diff hist +4,527 N LAMP Stack Created page with "==== How to install a LAMP stack: ==== ---- For Red Hat Enterprise Linux version 8: RHEL8 includes PHP 7.2 so the standard PHP is fine and Software Collections isn't needed: dnf install httpd php php-mysqlnd php-gd php-xml mariadb-server mariadb php-mbstring php-json Ubuntu 16.04.2 LTS (Xenial) and Debian Stretch include PHP 7.0, and renamed many packages from "php5" to plain "php". In addition, some PHP modules are now in separate packages (xml, mbstring): apt-get..." current
- 00:3600:36, 27 August 2024 diff hist +7,829 N Kernel Created page with "The kernel is the heart of the Linux operating system. It's responsible for scheduling running programs, file management, and security. If you have a device driver, it runs in the kernel. Networking is implemented in the kernel. This is what we mean as <b>kernel space</b>. The kernel's job is also to support user programs, which run in <b>user space</b> like shell, web browser, or similar programs. User space programs interact with a kernel through special devices or s..."
- 00:3600:36, 27 August 2024 diff hist +172 N KMS Created page with "If you suspect a KMS issue, check cloudtrail for the following events to see if there are any kms permission errors: * GenerateDataKeyWithoutPlaintext * ReEncrypt * Decrypt" current
- 00:3000:30, 27 August 2024 diff hist +35 N Jq Created page with "https://earthly.dev/blog/jq-select/" current
- 00:3000:30, 27 August 2024 diff hist +146 N Journald Created page with "Enable persistent logging: https://www.golinuxcloud.com/enable-persistent-logging-in-systemd-journald/ https://access.redhat.com/solutions/696893" current
- 00:3000:30, 27 August 2024 diff hist +38 N Journalctl Created page with "journalctl --no-pager --catalog --boot"
- 00:2900:29, 27 August 2024 diff hist +610 N Java Created page with "To replicate customer's java code/issue, use AWS Cloud9!!! * Get started with the AWS SDK for Java 2.x (Quick start) https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html * Install Java and a build tool https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/setup.html#setup-envtools * Amazon Corretto 8 Installation Instructions for Amazon Linux 2 https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/amazon-linux-install.html..." current
- 00:2900:29, 27 August 2024 diff hist +21,582 N Iptables Created page with " <b>iptables</b>/ip6tables -- administration tool for IPv4/IPv6 packet filtering and NAT <u>AWS Specific</u>:</br> In normal circumstances we do not use iptables to block traffic in AWS. We rely on the security groups and Network ACLs for this purpose. <b>iptables</b> on an instance is normally used for NAT instances or instance-based VPN, i.e. OpenSwan, OpenVPN, StrongSwan or Sophos UTM. You can sometimes use iptables to block traffic on an instance. For example, u..." current
- 00:2900:29, 27 August 2024 diff hist +510 N Iperf Created page with "https://www.slashroot.in/iperf-how-test-network-speedperformancebandwidth https://aws.amazon.com/premiumsupport/knowledge-center/network-throughput-benchmark-linux-ec2/ ====How to test network bandwidth==== To test your uplink speed, you can you utility such as the iperf3 utility as follows: 1) on the listener/destination: iperf3 -s -p 1500 2) On source run: iperf3 -i 10 -c Vanilla_linux_server_ip -p 1500 -t 60 > iperf60.log iperf3 -i 10 -c Vanilla_linux_server..." current
- 00:2800:28, 27 August 2024 diff hist +3,250 N Iostat Created page with " <b>iostat</b> - Report Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions. $ iostat Linux 4.14.158-129.185.amzn2.x86_64 (ip-172-31-33-239.ec2.internal) 02/24/2020 _x86_64_ (2 CPU) avg-cpu: %user %nice %system %iowait %steal %idle 0.15 0.00 0.11 0.01 0.04 99.70 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn nvme0n1 0.86 2.81 5.86..." current
- 00:2800:28, 27 August 2024 diff hist +12,477 N Install and Enable ENA drivers for Nitro Created page with " How do I install and enable the latest ENA driver for Enhanced Network Support on an Amazon EC2 instance running Red Hat 6/7?</br> https://aws.amazon.com/premiumsupport/knowledge-center/install-ena-driver-rhel-ec2/ ====How to launch RHEL 6 on Nitro-instance==== ---- Yes, it is possible to run RHEL 6 on Nitro-isntances (M5, C5, T3). I have tested this out using AMI: ami-0351faf7328fdb373 (RHEL 6.10 - HVM - Red Hat Provided, ENA: no). 1) First make sure NVMe driver is..." current
- 00:2700:27, 27 August 2024 diff hist +953 N Inodes Created page with " inodes are associated with each linux file and the system can run out of inodes when multiple smaller files are created. Inodes are references to the physical location of files on the file system. Each individual file uses one inode. Study and add notes: https://helpdeskgeek.com/linux-tips/what-are-inodes-in-linux-and-how-are-they-used/ https://unix.stackexchange.com/questions/117093/find-where-inodes-are-being-used Running out of inodes generally means you've g..." current
- 00:2500:25, 27 August 2024 diff hist +2,627 N Ifconfig Created page with " <b>ifconfig</b> - *technically obsolete (use ip addr instead)* Show interface info, IP address, mac address, etc. $ sudo ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:17:42:1f:18:be inet addr:10.1.1.7 Bcast:10.1.1.255 Mask:255.255.255.0 inet6 addr: fe80::217:42ff:fe1f:18be/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:1 errors:0 dropped:0 overruns:0 frame:0 TX packets:11 err..." current
- 00:2400:24, 27 August 2024 diff hist +361 N IPv4 Created page with "====How to find your own IP==== ---- $ curl wtfismyip.com/json { "YourFuckingIPAddress": "52.94.133.131", "YourFuckingLocation": "Richmond, VA, United States", "YourFuckingHostname": "52.94.133.131", "YourFuckingISP": "X Office", "YourFuckingTorExit": false, "YourFuckingCountryCode": "US" } $ curl ifconfig.me 72.21.196.67" current
- 00:2100:21, 27 August 2024 diff hist +193 N IOwait Created page with "Good article: https://haydenjames.io/what-is-iowait-and-linux-performance/ Troubleshooting high IOwait in Linux: https://madflojo.medium.com/troubleshooting-high-i-o-wait-in-linux-358080d57b69" current
- 00:2100:21, 27 August 2024 diff hist +972 N Hyper-V Created page with "====Adding your ISO file from the Library server to the HyperV server as a physical library object==== ---- # Log in to the HyperV server # Click on the <b>Virtual Machine Manager Console</b> shortcut on the Desktop. # Enter the <b>Server name</b> and click <b>Connect</b> # On the left hand navigation pane, select <b>Library</b> in the bottom section. # Click <b>Import Physical Resource</b> in the top banner # Click <b>Add resource</b> # Go to <b>Network</b>, wait a co..." current
- 00:2100:21, 27 August 2024 diff hist +2,857 N History Created page with "<b>history</b> - This commands stores the executed commands ran by a user. Typically, these commands are store in the user's home directory: <b>/home/<user>/.bash_history</b> For <b>root</b> user, it will be in: <b>/root/.bash_history</b> You can search where the .bash_history file is by running: $ echo $HISTFILE /home/ec2-user/.bash_history # Run as root $ echo $HISTFILE /root/.bash_history ====How to Increase the History Size==== ---- First, check curren..." current
- 00:2000:20, 27 August 2024 diff hist +699 N Hard Links / Soft Links Created page with "There are two types of links: * <b>symbolic links</b> (also known as “<b>soft links</b>” or “<b>symlinks</b>”): Refer to a symbolic path indicating the abstract location of another file. * <b>hard links</b>: Refer to the specific location of physical data. ====Soft Links==== ---- <b>How to: Linux / UNIX create soft link with ln command</b></br> https://www.cyberciti.biz/faq/creating-soft-link-or-symbolic-link/ =====<u>How to c..." current
- 00:1900:19, 27 August 2024 diff hist +1,774 N Grep Created page with "<B>grep</B> - Pretty much a search function. Prints lines matching a pattern. ----- Examples: cat [file] | grep "word" # Prints any line with "word" grep -i # Ignore case senisitivity *i is for INSENSITIVE* grep -irl [word] [dir] # Ignore case distinctions, Read all files under each directory, recursively, Suppress normal output; grep [word] [in file/dir] # Searches up "word" in that file or dir g..."
- 00:1900:19, 27 August 2024 diff hist +4,337 N Git Created page with "<B>git</B> - The stupid content tracker. Git is a stupid content tracker because it has no idea what's inside those blobs, and it doesn't try to store fine grained information like "lines 345-350 added, lines 502-508 removed" or anything like that. https://github.com/git-guides ====How to clone github repository to your local terminal==== ---- $ git clone https://github.com/ardikas/shell-scripts ====How to set up your terminal with remote access to your Github repo==..." current