Search results

  1. B

    Few questions about this script

    host=www.google.com port=443 while true; do current_time=$(date +%H:%M:%S) r=$(bash -c 'exec 3<> /dev/tcp/'$host'/'$port';echo $?' 2>/dev/null) if [ "$r" = "0" ]; then echo "[$current_time] $host $port is open" else echo "[$current_time] $host $port is closed"...
  2. B

    Solved How do I mount a newly added disk in Linux using LVM?

    I've been provided 500GB of hard disk by an enterprise and now I want to mount it in / partition using LVM, step by step guide to do it? I don't want to risk losing data but can't afford a backup :D Any guides that is correct. I'm scared to try blogs from internet. I want your help really!!. I...
  3. B

    Disk has been put in server, I need to just mount it, how do I do it?

    LOL if this is really stupid question. I'm really scared to do this. The disk is called "sdc". I just need to mount it on / . I've read lots of blogs but I'm scared to try them out. Can you give me a easy hands on guide.
  4. B

    Why can't we mount multiple filesystem in same mountpoint?

    Galvin et al, Operating System Concepts Deitel et al, Operating System So, basically this means we're trying to say at one mount point we can have only one file system. i.e a directory can have only one filesystem. But why? In a tree structured directory, I see no reason to allow a mount...
  5. B

    Best textbooks to learn TCP IP protocols?

    fourozan networks stallings networks douglas comer internetworking with tcp ip volume 1 stevens tcp ip fourouzan tcp ip stallings networks fourozan security atul kahate security These are all the textbooks I'm planning to buy. Would you recommend anything else? I want to get closer to RFCs but...
  6. B

    Difference between ? and * in globbing?

    ? It represents a single character * It represents zero or more characters The difference: say there are these files in system. file1 file2 file3 file4 file10 You do rm -f file? It will not delete file10, meanwhile if you do rm -f file*, it'll delete all files. What I'm trying to understand...
  7. B

    How to check the size of symbol table of Linux directories?

    https://www.ibm.com/docs/vi/aix/7.2?topic=systems-directories How do I check the size occupied by just the symbol table of a directory? i.e the mapping of file names to inodes?
  8. B

    Tell me how can I use lsblk, df commands to troubleshoot system issues in depth?

    What kind of issues can I troubleshoot using lsblk command? I use df command to check if the disk is full or not in linux. Tell me how can I use this combo for troubleshooting purposes?
  9. B

    Convert this script where I can input the day

    LC_ALL=C awk -v beg=10:00:00 -v end=13:00:00 ' match($0, /[0-2][0-9]:[0-5][0-9]:[0-5][0-9]/) { t = substr($0, RSTART, 8) if (t >= end) selected = 0 else if (t >= beg) selected = 1 } selected' I didn't write this script but I vaguely understand it in gist and what it does...
  10. B

    Need a Kanban X Ticketing Software, Open-Source and Self-Hosted?

    Problem Statement: We're using scrum at work. Not every member has scrum account. Only senior members have it (I'm not sure why). The 60% employees are among juniors. So, our purpose is one of the members of the junior team will lead the junior team in assigning tickets. The tickets are...
  11. B

    client_max_body_size 4M; meaning in nginx

    Why'd any client send request payload greater than 4MB? I don't understand. What kind of websites need 4MB request payload size?
  12. B

    How to track daily tickets in windows 10 opensource?

    This is the workflow I want. persons: A,B,C,D,E. date: today, yesterday,......all days. should be shareable to view by everyone.
  13. B

    What’s the problem with this nginx unit file? systemctl stop nginx isn’t working?

    [Unit] Description=The NGINX HTTP and reverse proxy server After=syslog.target network-online.target remote-fs.target nss-lookup.target Wants=network-online.target [Service] Type=forking PIDFile=/run/nginx.pid ExecStartPre=/usr/sbin/nginx -t ExecStart=/usr/sbin/nginx ExecReload=/usr/sbin/nginx...
  14. B

    Get really lazy after reaching 70% of udemy courses(nginx and bash atm)

    i get super lazy once I reach around 70-80% of the udemy course and stop performing my best. I study well for the first 70% of my course, but once I reach 70%, I start to feel "know it all type" and feel unchallenged. Thus reducing my motivation to learn. How do I fix this issue? Currently...
  15. B

    A Linux Puzzle using tr command

    cat greeting hello cat greeting | tr -d "\r" hello world Create a file called greeting so that you can generate the expected output as shown in second case.
  16. B

    Using maxage in conjuction with rotate in logrotate

    I've read these blogs about maxage and rotate when used in conjunction and I'm still confused about it. https://www.clearos.com/clearfoundation/social/community/silly-question-re-logrotate-and-rotate-vs-maxage https://unix.stackexchange.com/questions/261696/logrotation-rotate-and-maxage-command...
  17. B

    size option of logrotate

    https://www.keycdn.com/support/logrotate#maxsize /var/log/nginx/*.log { size 50G } Does this mean the size of all the log files in /var/log/nginx will be more than 50G then rotate the log or does it mean the size of 1 log file in /var/log/nginx will be more than 50G then logrotate?
  18. B

    How to grep or awk or sed exact match in linux

    Say I've servername-server servername servername_new_bak Say servername and servername_new_bak aren't running. When I do ps -aux| grep servername | wc -l I want only 1 as output as servername is not running, but currently I'm getting 3 as output because servername-server is running. That's...
  19. B

    Run for loop only if the looping variable exists in bash scripting?

    #Declare the path PATH_GF='/home/srvrname/srvrname/bin/asadmin' domainArray=("dom1" "dom2" "dom3" "dom4" "dom5" "dom6" "dom7") for domain in $domainArray; do $PATH_GF stop-domain $domain done echo "All Domains Have Been Stopped" i="0" while [ $i -lt 10 ]; do echo "Waiting some time" &...
  20. B

    Best cloud service provider for my case?

    I am tired with my laptop vm. The laptop is seemingly powerful. 1TB SATA SSD and 16GB RAM. But i5 processor. But when I run 3 VMs on it, they freak out and hang. I am tired because my multi-server learnings like nginx-reverse proxy, load balancing, and things that require mutliple servers are...
Top