Linux Useful command line tools and tips |
- Useful command line tools and tips
- Help with Apache
- Linux music player like Foobar
- [Linux] How to use ls command to recursively display specific files using wildcards?
- TIL you can rotate the gears in glxgears
- Out of the newest Xubuntu, Peppermint, and Mint distros, which is the least likely to phone home with fishy stuff or give info to third parties?
- Post docker install, computer voice keeps telling me my distro flavor, vm flavor and "1 frame" over and over.
- no wi-fi =/
- Need help installing Fail2ban on Netgear R700 router (tomato firmware)
- Debian Basic Gnome Installation Guide + Development Tools
- recording audio out of whats coming out of headphones?
- How to use a custom ASCII image in my terminal?
- Attempting to install Kubuntu, stuck on this screen
- I EXTRACTED 10.000 FILES TO MY DESKTOP...
- Booting Kubuntu from USB gets stuck
- From Proxmox CLI, I can ping 8.8.8.8 but I can't curl google.com
- Ubuntu 18.10 GNOME, somehow managed to break the Terminal Shortcut
- Absolute tracking trackpad on Kubuntu?
- Google Chrome on Linux mint 18.4 , is not saving my extension(s) settings or oneTab extension urls.. gets lost after every few weeks
- How can I change my username and computer name in Linux Mint 19?
- how do i mount a share manually that i have in /etc/fstab?
- Users Lack Permissions to Share Subdirectories Created by Docker
- Getting Plank to lock Docklets at the end of Dock, ala MacOS
- How to delete redundant/no longer needed installs?
Useful command line tools and tips Posted: 21 Oct 2018 04:17 AM PDT Hoping that this might help newcomers, in this post I present the tools I often use with some background why and how it can hopefully help you. I've started using Linux as my main OS in 2007 or 2008 with some trying it the years before and I remember that at the beginning, the shell is rather scary and mainly used to run commands that were copied from somewhere. I hope that you find some inspiration in this post to shift some of your workflow to the shell. Please understand that I won't give detailed usage examples, you can find those on the web easily, otherwise this post would become way too long. Also be aware that some examples might include functionality I mention later. Read the whole thing! In no particular order: tmuxtmux is the Terminal MULtiplexer. What does that mean? Basically it allows you to divide a single shell window into multiple, which is the first thing it does. It can either be done using so-called windows (which is comparable to a browser's tab) and panes (which is comparable to a website's frame, though those are luckily not used anymore). This is useful when you have a limited number of shells available, but not only then. Another big advantage is that tmux allows you to keep programs running in the background that bind to a terminal. Sounds complicated, but let me explain what it means in practice. An executable you run from the shell will, by default if it doesn't do things to avoid it, bind to that terminal. That means if the terminal terminates / closes, the program terminates with it. However, there are situations where you don't want that, especially for long-running processes. To give an example: I have an encoding job in The other solution that you see sometimes is to run a command with an There are a lot of great resources about
OpenSSH
One example to show its versatility: I was in a hotel with my notebook and Raspberry Pi. I wanted to hook up the Raspberry Pi to the TV and use it to watch something over WiFi. The WiFi however had a login page for internet access and the Raspberry Pi no browser or peripherals and I wasn't willing to get either. So what did I do? I connected to the Raspberry Pi using
It is an awesome tool, but don't forget to secure it as it can allow access to your machine. Task SpoolerOne of the lesser known tools and maybe not helpful for many, Task Spooler helps you to run multiple shell commands after each other (or in parallel). The normal flow for a shell you might see is "command 1 & command 2 & command 3" which will run those commands after each other. But what if you don't know all the commands yet? Task spooler allows you to queue commands at any time, shuffle them around, change their running conditions (e.g. only run command if command with number 3 exited successfully) and more. I use it mostly to manage encoding jobs. find
If you don't need all the fancy knobs of ffmpeg
rsyncAlso one of the better-known tools, sedThe Stream EDitor transforms text. Sounds boring, but can be a very helpful tool. Silly example: I have a file called This basically told grepKind of related, renameProbably you know that renaming individual files is done using the This translates to "rename img to img0 in all files that start with img followed by a single character followed by .jpg", so img1.jpg would become img01.jpg, but img10.jpg stays the same because it has two characters after "img" and before ".jpg". Be aware that two versions of Regular ExpressionsRegular Expressions or regex is a powerful system to match text. In fact it is so powerful that I don't think many have fully mastered it. and I am no exception - in fact my regex knowledge sucks. However, if you go back to the curl
Your shellYour shell is a tool to combine all the programs you have and make them do your bidding. It allows to be scripted for that matter and provides some logic itself. There are good shell scripting tutorials online and I suggest that you learn the basics (loops, conditional statements, general flow) as this is quite simple programming that can help to achieve some tasks. ConclusionAs you noticed, this post doesn't really help with concrete problems, but this was not my goal. I hope to give a small overview of the tools you probably have installed on your system because for me as a beginner, it's not only that you don't know how a certain program works, but also that you don't even know it exists. Also, believe it or not, the shell and shell programs are tools to make your life easier, not harder, and after working with shell programs for some time, you'll most likely notice that they do what you want much better than most graphical programs. For sure not everything can be done efficiently in a shell, but a lot of tasks can. It requires some experience to analyze the problem you have into smaller sub-problems that you solve with the tools you have and combine using shell logic, but your tools are flexible and in my opinion, it's actually fun. If you need help on a given program, your first step should always be to run [link] [comments] |
Posted: 21 Oct 2018 01:10 PM PDT Hello, For my project I am trying to install apache web server. I needed apr and apr-util for the dependencies. and currently have both of the zipped files on my system. I was able to unzip the apr file using | tar -xzf apr-1.6.2.tar.gz. However when I tried to do the same with apr-util | tar -xzf apr-1.6.1.tar.gz . I can confirm that I am in the directory where the apr-util is stored and I am not making any spelling mistakes. I will attach the error message I am getting. Any feedback would be appreciated as I am currently lost. [link] [comments] |
Linux music player like Foobar Posted: 20 Oct 2018 11:13 PM PDT I love Foobar on Windows. The interface is incredible and easily customizable. Is there a Linux music app like Foobar ? [link] [comments] |
[Linux] How to use ls command to recursively display specific files using wildcards? Posted: 21 Oct 2018 11:20 AM PDT I'm trying to list all But it only displays the ones in This is not a permission problem because I can access the files in the subdirectories. [link] [comments] |
TIL you can rotate the gears in glxgears Posted: 21 Oct 2018 01:20 AM PDT You can use the arrow keys to rotate the gears in a 3D space. [link] [comments] |
Posted: 21 Oct 2018 01:57 PM PDT I'm not really fussed with internet privacy. It's the enemy within. The telemetry, the amazon-style shenaningans that we have seen in ubuntu some years ago. I want to use xubuntu because it is lightweight, but it has a fishy software manager which loads ads and has non-free programs like spotify and other facebook-type programs, and it's just disgusting. Maybe it can be deleted. Peppermint looks super good, but someone said something about GNOME being shady, and it is partly based on that or something ,so I dunno. And Mint is popular for everyone, but I haven't informed myself enough to know how it stands with privacy. Ideally, I would like a distro that is ready to go out of the box, and I don't want any updates or any communication with any third parties, not for error reports or anything. Which one do I pick, and are there maybe better ones? tnx! [link] [comments] |
Posted: 21 Oct 2018 01:41 PM PDT This began happening after I started working with docker via terminal to learn how to launch a new LEMP server. Is this a docker thing or I'm completely unsure what is doing it. Thanks! [link] [comments] |
Posted: 21 Oct 2018 01:41 PM PDT i am in a Acer notebook, its have a button to turn on and off WI-FI, but this button don't operate when i boot the Notebook with puppy linux inside my pendrive, some one know where i turn on the Wi-Fi? [link] [comments] |
Need help installing Fail2ban on Netgear R700 router (tomato firmware) Posted: 21 Oct 2018 08:34 AM PDT I need help installing Fail2ban on my router. Most likely I would need USB storage, since nothing can be permanently changed on the system (I have tried with iptables for example). I just need help installing it, I couldn't figure out which flavor of linux this thing is, I only have this kernel version "2.6.36.4brcmarm". If I put the file on a USB stick, untar it and run the .sh is that all? How do I make it play nice with the system and iptables? Thank you EDIT: R7000 not R700 [link] [comments] |
Debian Basic Gnome Installation Guide + Development Tools Posted: 21 Oct 2018 11:55 AM PDT Hi. I've created a basic installation guide for Debian with the Gnome environment. I use this guide with every installation I do and I want to share it with the community. It is hosted on a Github repository cause it is a little bit large. Since I use the distribution for development I added a basic developer section. If you want to help to detect any kind of errors or contribute, you can send me a message or create an issue on the repository. Repository: Github Page: [link] [comments] |
recording audio out of whats coming out of headphones? Posted: 21 Oct 2018 11:44 AM PDT Hiya - I cannot use the snap and the program is not in the software store of Audio recorder on my o/s. therefore I have to rely on some other program. I need specific info (not miggledied advice) about how to specifically record the music coming out of my headphones? I am on Solus OS - therefore audio recorder fails to work. [link] [comments] |
How to use a custom ASCII image in my terminal? Posted: 20 Oct 2018 06:25 PM PDT I'm on Ubuntu 18.04. I'm currently using screenfetch to display my sistem's specs and the distro logo. I've seen people have a custom ASCII image instead of the distro logo, but I'm not sure how I can do that. I couldn't find much information. Anyone know how? [link] [comments] |
Attempting to install Kubuntu, stuck on this screen Posted: 20 Oct 2018 09:35 PM PDT I took all the dual boot prerequisites, inserted my burned ISO disc. And now I have been stuck on this screenhttps://i.imgur.com/KtWE9Ke.jpg I can move the mouse freely around, but there's nothing here. On the PC's bootup, there were a couple basic text screens that lasted a couple seconds, but I was never asked to install or anything. What gives? edit: Nevermind, I just realized my 2nd monitor was shut off and the installation window was there.... lol [link] [comments] |
I EXTRACTED 10.000 FILES TO MY DESKTOP... Posted: 20 Oct 2018 05:42 PM PDT and now my x220 is dying. it was vpn configuration files and it made my computer alow down because they didnt all fit on desktop. i restartet my pc during the process and now i cant even delete the files from the desktop... any chance anyone here happen to know what i can do. id appreciate greatly [link] [comments] |
Booting Kubuntu from USB gets stuck Posted: 21 Oct 2018 09:20 AM PDT I've been trying to install Kubuntu 18.04.1 onto a USB flash drive via Universal USB Installer, but whenever I try to boot from the USB, my laptop gets stuck on the startup screen (white "Ubuntu" with a blue glow around it, and the glow doesn't change). The flash drive has a 8 GB storage capacity which should be enough for the OS and 4 GB of persistent memory according to Universal USB Installer. This is the very first time I'm using Linux, so any help would be appreciated. [link] [comments] |
From Proxmox CLI, I can ping 8.8.8.8 but I can't curl google.com Posted: 21 Oct 2018 08:44 AM PDT So right now, I'm essentially tearing down the whole network and rebuilding it from the ground up. All that's plugged in right now is my cable modem (not a router), which goes into a dual-NIC mini-PC running Proxmox with a running pfsense VM, and a pi-hole VM that isn't spun up yet. The LAN cable is going to a 20-port managed switch, and my desktop is plugged into that switch. I'm typing this from my desktop, so obviously my desktop has Internet, pfsense is working fine, I can access the proxmox web GUI just fine, but when I drop into the proxmox shell and try to update, it just times out. But I can ping 8.8.8.8 and get a good response. When I try to curl google.com, it hangs and times out, so obviously, DNS is the culprit, right? I tried adding the pfsense VM as a dns-nameserver to the interfaces file, restarted networking.service, nothing. Tried rebooting the whole machine. Nothing. I've been Googling how to manually set DNS in proxmox, and I guess my Google-Fu is weak, because I can't find anything beyond editing /etc/network/interfaces and setting "dns-nameserver" in there. Any ideas what's wrong, here? **EDIT: SOLVED! I'm an idiot. I forgot that Proxmox keeps DNS settings in its own separate tab from the rest of the network settings in the web GUI. I just updated the web GUI DNS settings, and everything works fine. Thanks for all the help guys! I'll leave this up in case anyone else makes this stupid mistake, lol! [link] [comments] |
Ubuntu 18.10 GNOME, somehow managed to break the Terminal Shortcut Posted: 21 Oct 2018 01:50 AM PDT As per title. CTRL+ALT+T does nothing, and rebinding the shortcut also does nothing. Resetting does nothing. Apparently I can install Arch but not use a Shortcut properly. [link] [comments] |
Absolute tracking trackpad on Kubuntu? Posted: 21 Oct 2018 01:20 AM PDT Back when I was using HellOS, i used this software that changed my trackpad from relative tracking to absolute tracking and can be changed back easily by closing the program. Is there something similar in Kubuntu 18.04? I've heard about using evdev absolute tracking but it looks like a permanent solution and I want a temporary one. ps: graphical interface would be nice i am using it to play osu! [link] [comments] |
Posted: 21 Oct 2018 04:53 AM PDT On linuxmint 18.4 , Google Chrome is not saving my extension saved settings , or oneTab extension urls.. gets lost after every few weeks. is there something i can do to make my extension settings and onetab extension urls saved/persistent. Im not sure what is actually causing this loss of saved settings of my extensions/cache data. btw i have not updated Chrome for the reason, which i thot was possibly the issue,but even without updating Chrome my saved settings for extensions are loosing their saved values and each time i have to configure noscript urls and similarly for all other extensions i know i can export oneTab urls but dont want to do it each time i open/close browser. appreciate any suggestions on how i can fix this issue. [link] [comments] |
How can I change my username and computer name in Linux Mint 19? Posted: 21 Oct 2018 04:15 AM PDT I've seen a few tutorials saying I need to edit the etc/hostname file, but I can't find it. Looked in the "File system" folder and also on the "Home" folder (after pressing Ctrl+H and seeing all hidden folders there). As for the username I changed it on "System Settings"->"Account Details", but when I go to "Users and Groups" the old name still displays below the new one on the right side of the picture. How can I change that? Could someone please let me know how to do it properly? Thank you! [link] [comments] |
how do i mount a share manually that i have in /etc/fstab? Posted: 20 Oct 2018 06:38 PM PDT I have this in my /etc/fstab file. It is supposed to auto connect on startup but it has never worked that way so I would have to force it. The problem is that I don't remember how i would force it... I think i used [link] [comments] |
Users Lack Permissions to Share Subdirectories Created by Docker Posted: 21 Oct 2018 02:26 AM PDT I run qBittorrent in a docker on my Unraid server, downloading to several different shares. It's working well, except that apparently any directories created by the docker are seemingly owned by the user running the docker (UID 99, apparently), and they don't respect the permissions I've set up for the share. For example, while bob may have full read/write access to the share /software/, he cannot change a subdirectory like /software/nameoflinuxdistro/ if it was created by the docker as part of a torrent. To change such a directory, I have to do it either through the docker (ie qBittorrent's webui) or a terminal as root. This is untenable. How do I ensure that any files or directories created by the docker inherit the permissions I've set up for the share? [link] [comments] |
Getting Plank to lock Docklets at the end of Dock, ala MacOS Posted: 21 Oct 2018 01:37 AM PDT Basically I have been trying to get this to work all day long, but can't manage to do it. I want to have a separator at the end of the Dock to place my Trash Applet, but hours of Ducking (and Googling) have led me nowhere. Ubuntu 18.10. [link] [comments] |
How to delete redundant/no longer needed installs? Posted: 20 Oct 2018 04:50 PM PDT I have several installations of wine in particular that I'd like to get rid of. I'm on Mint 19. Just not sure how to find the files and delete them or find the program within Mint that will allow me to delete whole packages at once. [link] [comments] |
You are subscribed to email updates from Linux 101 stuff. Questions are encouraged, noobs are welcome!. To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google, 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States |
No comments:
Post a Comment