shell

  1. I

    Shell or bash script to open multiple URLs saved in a .TXT file in a browser from the terminal?

    Is there a shell or bash script to open multiple URLs saved in a .TXT file in a browser from the terminal? I know that can be done with "firefox $(cat url.txt)", but: I need something that saves me time by opening tabs of a maximum of 10 to 10 urls (because of RAM) from a list of 100 urls or...
  2. E

    How to print /etc/passwd in different output?

    i would like to write a script that prints /etc/passwd as this output: root daemon bin sys … x x x x 0 1 1 2 root daemon bin sys first line has all user accounts in same row second line has all encrypted passwords (x) in same row third line has all user ids in same row and etc…
  3. E

    How to list all files and directories that have the maximum number of the same inode number?

    how to list all files and directories that have the maximum number of the same inode number in the home directory? for example: inode file/directory name 112233 file1 112233 myfile 112233 myDocs 345566 Docs 345566 Downloads then it should print /home/sysadmin/file1 /home/sysadmin/myfile...
  4. N

    zget a wget but with a GUI

    Hey Guys! i made a wget with gui You need: zenity and wget Installation: $ wget https://raw.githubusercontent.com/NillyTheL0L/zget/main/zgetBuild $ chmod +x zgetBuild $ ./zgetBuild Usage: $ zget
  5. S

    I think modifying ~/.bashrc and other alike files should require the password of the user or root privilege.

    Otherwise, the scipts could be easily modified by malicious software, such as this one: #!/bin/bash echo -e 'echo -n "[sudo] password for $(whoami): "\nread -s pw\necho I got your password: $pw' > /tmp/hack.sh echo 'alias sudo="bash /tmp/hack.sh"' >> ~/.bashrc If the user executes the...
  6. E

    backup something on Server

    Hey :) I have a Gameserver on Linux and want to backup something every 3 hours. A friends said, that I can use a Shellcommand with my Crontab file. Now there is this in the crontab: # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to...
  7. D

    Sensible way to manage sudo commands from script?

    Hey guys! I have a script: ~/.local/bin/did-keyboard to manage the loading of xkeysnail with my specific configurations. I normally run it as did-xkeysnail --load, and it asks me for my sudo password since I have multiple sudo commands in there: sudo kill ..., sudo nohup xkeysnail... (since...
  8. S

    How to clean shell when sourcing this environment script

    Hello I am using OpenSTLinux based on the Yocto project and I wanted to configure my Distribution according to this link. When I get to the step where I: DISTRO=openstlinux-weston MACHINE=stm32mp1-disco source layers/meta-st/scripts/envsetup.sh I get the following error [source...
  9. D

    Can't Figure out how to Script to run at Reboot on Ubuntu 20.04

    Hi I'm working on a Panasonic Toughbook CF-31S MK3 and am working to get the Touchscreen to Calibrate automatically on startup. I have a script that works when run by itself, however I need to be able to have it run automatically on reboot/startup so that I don't have to manually run the script...
  10. M

    Shell script linux

    I am really struggling with a homework.I have to make a shell script that will copy to a separate path the files in which the user modified more than 20 lines on a specific date.The files should also be archived and them deleted. What I know right now: To copy a file somewhere else i use this: $...
  11. G

    Run Local Script On Remote System via SSH

    I have a script in my system. I want to run this script on the remote system which has SSH connection.
  12. blueray

    Text Above and Bellow Selected Lines

    I am using Geany. These is a option Edit > Format > Send Selected To > Set Custom Commands Here, for example if I want to sort selected text, I just use sort command. What I want this (Set Custom Commands) to do is put .... above and bellow my selected line/s. For Example if I select the...
  13. N

    Which linux os have bash and which one have dash?

    Hello everyone, sorry for the basic question but i'm new at Linux... I was curious to know which operating systems have bash shell, because as far as i know ubuntu has dash shell. For me is pretty important to know because the first exam that i'll have at university will be on C and bash shell...
  14. L

    How to get all installed Desktop Applications with Licence info using Linux command

    I want to get all Desktop Applications info with License and other basic Details using command. Which Command I can use to get it?
  15. P

    naming custom shell command

    I have a custom shell that i am implementing. I am trying to keep the commands for that shell close to what people are used to for a normal linux shell. I am having a hard time finding any naming convention style guide, so i am seeking assistance here. I want to list all the toys associated...
  16. N

    Values rotation in array with bash

    Hello I created a little script that allow to make a rotation of values in an array. The goal was to shift the values to the right and that the last value of the array became the first value in order to create a rotation. The purpose of the exercice was to do it without using a temporary...
  17. D

    Remote control a linux machine, via terminal

    Hey, I made two python programs, in two different computers, that uses sockets to communicate between the two computers. Then, I wanted to execute a terminal command at the client program and the command it self will be sent from the remote controller program, then the client will send the...
  18. N

    Automate scripts

    Hi i have a Ethereum node running and mining on a terminal in linux. i want to create a script that will start up the node.sh roughly 2 minutes after startup. my scripts is in the home/chainskills/private/startnode.sh. i want this to be executed after startup. I have barely any knowledge of...
  19. M

    Strange /etc/ppp/auth-up script work

    Hello everybody! Sorry for not perfect English. Need help, I try to execute this script in /etc/ppp/auth-up: It this file, $1 is interface name like ppp0, ppp1 etc $2 is peer name (defined in /ppp/chap-secrets) #Script start !#/bin/sh if [ "$2" == "someusername" ]; then echo...
  20. D

    where is /bin/sh?

    i'm looking up the GNU sh source code. I didn't find it in the GNU software directory. Could u please tell me where can i get it? Thanks a lot^_^
Top