Sometimes a command is so long that it doesn't fit on one line. ps
usually truncates it but sometimes you want it to wrap instead so you can see the full command.
The proper method is to use the -w
option twice. From the man page:
-w Wide output. Use this option twice for unlimited wid...
Everyone knows about ulimit
to show and set the current shell's maximum number of open files (among other things), but what if you want to know the total number of open files on the whole system. I thought I could find the global number of open files by running lsof | wc -l
but this number als...
The find
command can optionally pass the files it finds to another command using the -exec
option. The syntax is easy, just add -exec 'other_command ;'
as an argument to find. But I did that, and it's telling me find: missing argument to `-exec'.
Turns out it just needs the semi-colon es...
Update: Changed the method for finding the latest version
I had been using a script which kept youtube-dl
up to date automatically, but youtube-dl
doesn't seem to have received an update for a long time. It still works, but very slowly for some reason. I have now found yt-dlp which seems to...
You can use ulimit -c 0
to disable core dumps, but that obviously won't remove any core files that are already sitting on your filesystem - and sometimes you have no idea where they might be since different stuff can be running in the background from any directory. These files can be a few gigabyt...
I recently started getting the message commandline disabled
when pressing the ~C
escape key in ssh. I thought it must have been something to do with the server I was connected to but it turns out it was my openssh client.
After a recent update I have openssh 9.2 installed and that seems to...
I got a new monitor, and got a new cheap LED strip to stick behind it. This one though isn't the same as my old Triones / HappyLighting one and identifies itself as ELK-BLEDOM and the app is called duoCo Strip. I did find a project on github which provides some commands that can be sent to con...
One thing that has always annoyed me in Slackware is that /tmp never gets automatically cleared so I end up with with lots of space wasted in there. Especially after building lots of SlackBuilds and filling up /tmp/SBo :). I sometimes looked in there to clean it up manually and hope I don't delete s...
The Linux version of Spotify provides a way to control the music using the DBus org.mpris.MediaPlayer2.spotify service. This lets you skip tracks, play, and pause the music. It doesn't let you change the volume though.
If you are using PulseAudio or PipeWire then you can use the pactl
command to...