Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Results tagged with linux
Search options not deleted
user 886205
A family of Unix-like operating systems using the Linux kernel. If your question is about a certain distribution only, use a more specific tag.
1
vote
3
answers
95
views
add several lines to a system file
If I want to add a line to fstab or another system file, I execute the following in the command line. Example:
echo 'line1' | sudo tee --append /etc/fstab
echo 'line1' | sudo tee --append /etc/apache …
1
vote
2
answers
516
views
how to cat/grep string semicolon delimited
How to cat/grep string into several files semicolon delimited to capture mac address. Example:
Folder:
/home/acl
acl Files:
acl1
acl2
string format info acl files:
a;mac address;ip address …
0
votes
0
answers
826
views
how to block arp spoofing with arptables
Based on this rules, i am trying to block arp spoofing attack with "arptables" from a ubuntu server that controls local network traffic, but my rule doesn't stop it
macs.txt contains the mac addresse …
1
vote
0
answers
1k
views
7z missing volume .r00
Some .rar files by volume do not end in .r00 or similar. then the following happens:
If I run in command line:
7z x -y -pfoo "file (1).rar"
And it is a file per volume, but the next volume is file (2 …
0
votes
1
answer
254
views
Unable to completely block IPv6 traffic on my Ubuntu host
I have this configuration Ubuntu 18.04:
sudo nano /etc/sysctl.d/99-sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
sudo sysctl …
0
votes
1
answer
365
views
how to mount/umount folder with bindfs/fusermount from root account without privileges?
This is my bash script into init.d:
#!/bin/bash
case "$1" in
'start')
# mount
bindfs -n /home/my_user/.local/share/Cryptomator/mnt /home/my_user/drivefolder
;;
'stop')
fusermount -u / …
1
vote
0
answers
396
views
how to install an offline .deb program with its dependencies in local repo if they don't exist
this is my bash script (there are others similars HERE and HERE):
#!/usr/bin/env bash
pkgs='main-program dependency1 dependence2'
if ! dpkg -s $pkgs >/dev/null 2>&1; then
wget main-program.deb && ap …
2
votes
2
answers
342
views
Debug HTTP status code of a big urls list
I have a list of urls and I need to debug it, eliminating those that are invalid or dead. For this I use the following script in bash (based on this post):
#!/bin/bash
while read LINE; do
curl -o …
0
votes
2
answers
428
views
bash and function to detect duplicate data
In this example, I mention that I have 2 lists.
list1
x;00:26:82:50:00:00;192.168.1.195;COMPUTER1
x;00:26:82:50:11:11;192.168.1.195;COMPUTER2
x;00:26:82:50:22:22;192.168.1.196;COMPUTER3
list2
x;00:2 …
0
votes
1
answer
722
views
block .exe inside a .zip
If we want to block an extension in our firewall, we can use a rule similar to this:
example iptables rules:
iptables -A INPUT -p tcp -m string --string ".exe" --algo bm -j DROP
Or we can do it in …
0
votes
1
answer
3k
views
How to clone local disk (like /dev/sda) to NAS via network
I have a disk (A) (hard drive SATA 2 TB 3.5) and I have a NAS D-Link DNS-320L (with exact model of hard drive SATA 2 TB 3.5). Both connected to a router (local network), 192.168.1.3 and 192.168.1.2 re …
6
votes
6
answers
5k
views
change default mount point of pcloud
In Linux, pCloud is an appimage. …
0
votes
2
answers
424
views
How to delete any files that have not been used (access, change or modify) in X years
i run this command
find BAR -type f -mtime +1095 # older than 3 years
and find this file:
BAR/foo.pdf
So i run this:
stat BAR/foo.pdf
Access: 2020-01-03 01:32:05.584393000 -0500
Modification: 2017-1 …
3
votes
1
answer
190
views
extract .rar multiparts with bash
i run this script but this have a problem with extract rar multiparts
#!/usr/bin/env bash
shopt -s extglob nullglob
passw=(
passfoo
passbar
passfoobar
banana
chocolate
whiskey
vodka
…
0
votes
1
answer
440
views
show duplicate data with awk print $2,$3,$4 in a single line
If I have a 2 lists that contain the following (examples):
list1
x;00:26:82:50:00:00;192.168.1.195;COMPUTER1
x;00:26:82:50:11:11;192.168.1.195;COMPUTER2
x;00:26:82:50:22:22;192.168.1.196;COMPUTER3
l …