Hello. I lam fairly new to linux, and I have run into an issue where these 3 lines appear when i open my terminal.
bash: alias: godot: not found
bash: alias: =: not found
bash: alias: run /home/alison/Desktop/Godot_v4.5.1-stable_linux.x86_64: not found
At some point a few months ago I...
Hello everyone,
My name is Rodney and I’m based in Atlanta. I’m currently deepening my hands-on skills in Linux, Bash, Vim/VI, Git/GitHub, Kubernetes, Helm, and cloud-native tooling as part of my transition into a Multi-Cloud / Kubernetes-focused engineering role.
While I’m making steady...
I'm a bit familiar with working in Bash (simple commands, navigating through the directories, very light scripting, etc.) - but I want to increase my skills in that area. I purchased the "Learning the bash Shell, 3rd edition" by Cameron Newham and Bill Rosenblatt - but their writing style, to...
I have a script https://www.linux.org/threads/linux-org-user-created-helpful-shell-scripts.41234/post-249595
It outputs multiple lines, each line has some space-separated values. How to sort the output by 6th value? Treat it as a real number.
./kt.sh info | sort -n -k 6
sorts in some random...
Hello, dear readers.
I am happy to be here. I have seen recent posts and felt pretty much friendly vibes here.
I have used a couple of Linux distributions but was unable to master them and shell scripting stuff. Please note that I have a basic knowledge of bash.
By mastering Linux, I refer to...
I have multiple AWK queries I get haproxy metrics value by them
but sometimes the query return no value neither any other messages - just empty string.
How can I improve the query to return any other value if it's sent empty string?
And what value I can use in the above keys to signalize the...
Hi,
I created a simple script in which a certain information is send via mail like this:
printf "Dear $i, please enable 2fa on $site.\n\n Your inital code: \n $code \n\n\n For detailed instructions visit:\n https://docs.nextcloud.com/server/latest/user_manual/en/user_2fa.html \n\n You must...
I have written a script, and I need the tab autocomplete in my shell to only select files of a certain type (mp4, mkv, avi), just like rmdir's autocomplete only selects directories. Here's my (inelegant) script:
#!/bin/bash
[ -z "$1" ] && return
command mpv "$1" || exit
fd -q donefile && exit...
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...
The GNU Bash shell, an acronym for GNU Bourne-Again Shell, is a Unix shell and command-line interpreter used in most Linux distributions and macOS. It has become the de facto standard for shell scripting and is widely used by developers and system administrators.
One of my favorite reasons for...
Crosspost: https://www.nixcraft.com/t/converting-a-list-into-a-tab-separated-file-grouped-by-values/4517
Hello Linux.org,
This is my first post here and I'm hoping the community is inviting to novice shell scripters. So let me share.
I have a text file with a list of values. Here is a snip...
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…
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...
I am very very new to Linux, and when I’m installing anaconda, I noticed that the conda command can only be used after I type “bash” and start using the bash console. What’s the difference between bash and the default terminal?
Hello everyone! I am writing script which must count amount of strings in files .z format. Name of folder can changes in dependence of current date, if it's 1-st date of the month script count amount in folder which is called 2210 (previous month ) if today is not 1-st day of month then folder...
Greetings. . I need to convert a normal bash file, which in this case it's a "dockerfile" or docker build file from Arch to Debian. Is there any lazy script hanging around on github that fellow users are aware of ? Any app that converts these commands from a distro-specific to another ?
(there r...
No matter what command I use, I want to pipe it in to another command. Specifically I want to pipe it to lolcat (which will just color everything in to a shade of rainbow). Is it possible to do this just by editing the .bashrc file?
And, if anyone is wondering, I don't plan on actually using...