ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Tags
    3. shell
    Log in to post
    • All categories
    • DustinB3403D

      Linux Dig Finding cname records

      Watching Ignoring Scheduled Pinned Locked Moved Unsolved IT Discussion linux dig shell dns cname
      12
      0 Votes
      12 Posts
      1k Views
      JaredBuschJ

      API and a script

    • 1

      Shift + PgUp/PgDn in terminal?

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion console terminal linux shell
      3
      0 Votes
      3 Posts
      932 Views
      1

      @eddiejennings said in Shift + PgUp/PgDn in terminal?:

      @pete-s said in Shift + PgUp/PgDn in terminal?:

      When you use Shift + PgUp/PgDn on a linux console you can scroll the screen buffer.

      Where does this behavior come from? Is it the shell, a utility on the server, is it the console client, is it the ssh client?

      It's not working for me using ssh (on windows) and I realized I have no clue where to start looking...

      Probably specific to the config of your terminal program, unless youโ€™re truly talking about the console itself.

      I had to alter some key bindings in Gnome Terminal to get the desired behavior from the weechat key bindings.

      You were right. I was trying out Windows Terminal and running ssh inside. And shift+pgup/dn didn't work as expected.

      I looked at the Windows Terminal keybindings and the default was not what I wanted.

      So I added this under "actions" in the settings.json file:

      // Scrollback { "command": "scrollDown", "keys": "shift+down" }, { "command": "scrollDownPage", "keys": "shift+pgdn" }, { "command": "scrollUp", "keys": "shift+up" }, { "command": "scrollUpPage", "keys": "shift+pgup" },

      The added bonus is that shift+pgup/dn now also works with cmd.exe and PowerShell.

    • JaredBuschJ

      VitalPBX setup script on Vultr

      Watching Ignoring Scheduled Pinned Locked Moved Solved IT Discussion vitalpbx vultr linux shell bash scripting
      5
      0 Votes
      5 Posts
      792 Views
      JaredBuschJ

      e0defcac-7cf0-4601-8e04-178a60ea74ed-image.png

    • wirestyle22W

      Cron GPG Scripts can't locate the Keyring

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion gpg shell
      5
      0 Votes
      5 Posts
      570 Views
      wirestyle22W

      That seems to have fixed the issue

    • DustinB3403D

      Scripted visudo updates

      Watching Ignoring Scheduled Pinned Locked Moved Solved IT Discussion sed visudo apple unix terminal shell zsh
      16
      0 Votes
      16 Posts
      1k Views
      DustinB3403D

      @stacksofplates said in Scripted visudo updates:

      @DustinB3403 said in Scripted visudo updates:

      Well I managed to get the file created, I had to use visudo to create a custom file with my edits.

      I'm testing it now to see if everything works.

      Really? It doesn't let you just sudo a file in the dump directory? I wonder how they are enforcing that?

      Yeah, not sure why it was having a hissy fit over it, but I've got a good working custom sudoer.d/god file now that can be used for what I have, and I can simply cp that into the appropriate folder and reset the perms on it (if required) to get everything working.

      Thanks for the help guys!

    • Emad RE

      nohup

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion nohup linux shell bash
      6
      2 Votes
      6 Posts
      989 Views
      black3dynamiteB

      This is what I do when I use nohup.
      I usually create a file with the current pid just in case I need to stop it.

      nohup wget 'https://example.com/fedora.iso' > wget_fedora.log 2>&1 & echo $! > wget_fedora_pid.txt kill -9 `cat wget_fedora_pid.txt` rm wget_fedora_pid.txt
    • scottalanmillerS

      Nu Shell, a New PowerShell-inspired Shell for Linux

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion shell linux posix nu shell
      5
      2 Votes
      5 Posts
      738 Views
      scottalanmillerS

      @Francesco-Provino said in Nu Shell, a New PowerShell-inspired Shell for Linux:

      Nice, but why use this when we have the real PowerShell for Linux?

      Performance probably. And ease of use. And while PS is on Linux, does it process any Linux data in this way?

    • scottalanmillerS

      Tracking Down Ubuntu BASH Session Closing

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion ssh linux openssh ubuntu ubuntu 16.04 ubuntu 18.04 bash shell zsh
      45
      1 Votes
      45 Posts
      4k Views
      matteo nunziatiM

      @scottalanmiller said in Tracking Down Ubuntu BASH Session Closing:

      @matteo-nunziati said in Tracking Down Ubuntu BASH Session Closing:

      @scottalanmiller said in Tracking Down Ubuntu BASH Session Closing:

      If I use zsh, I'm good. If I enter BASH from zsh, I get kicked out after several seconds. Definitely is something to do with BASH.

      Stupid tryout: use bash and then enter zsh before being kicked out. Still out?
      To understand if it is the firing of bash itself or the stay in bash...

      No, the underlying bash remains until the ZSH closes. Same as if you were running top from it, for example.

      So basically bash is able to run long running jobs with your user...
      It's the interactivity with the shell to be broken... Meh.

      Sorry the thread is long, did you mention any test from zsh with:

      Bash <-- ok this kills the session
      Bash -i any difference???
      Bash -l ???
      bash --norc
      bash --noprofile

      From bashman page

    • DustinB3403D

      Scripting - How do you store your credentials and call them later?

      Watching Ignoring Scheduled Pinned Locked Moved Solved IT Discussion shell script credentials hashing
      79
      2 Votes
      79 Posts
      6k Views
      pmonchoP

      @IRJ

      I come mentally prepared with my powerful Crane! ๐Ÿ™‚
      alt text

    • DustinB3403D

      OSX administrators who use Brew - Xcode Tools no longer included by default

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion osx administration automation brew shell scripting apple xcode
      1
      1 Votes
      1 Posts
      526 Views
      No one has replied
    • DustinB3403D

      Enabling root SSH access for OSX

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion osx macos system administration cli command line shell apple mac macos system administration ssh
      1
      2 Votes
      1 Posts
      2k Views
      No one has replied
    • scottalanmillerS

      Managing Windows Local Users with PowerShell

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion windows sam windows administration system administration windows administration powershell shell command line cli
      14
      2 Votes
      14 Posts
      1k Views
      scottalanmillerS

      Topic has been forked, please keep discussions of OS comparisons to a different thread.

    • scottalanmillerS

      Shell Speeds, Bash and PowerShell

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion bash shell powershell
      91
      0 Votes
      91 Posts
      7k Views
      RojoLocoR

      ^^^ It's always hilarious when a scumbag scammer thinks their input is valuable.

    • DustinB3403D

      OSX Shell Error Operation Not Permitted

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion apple osx quarantine shell bash scripting security troubleshooting brew
      2
      2 Votes
      2 Posts
      718 Views
      DustinB3403D

      Just used this again today, as another script I have had this attribute.

      Not sure when the attribute was written to the script though. But it's working now.

      This is the full error.

      /bin/sh: bad interpreter: Operation not permitted
    • DustinB3403D

      Find the character break - sh script

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion osx apple shell shell scripting error
      28
      0 Votes
      28 Posts
      2k Views
      DustinB3403D

      @marcinozga said in Find the character break - sh script:

      @DustinB3403 you need to source .bash_profile after changing it, so bash picks up modified file. Either

      source ~/.bash_profile

      or

      . ~/.bash_profile

      Thanks for that, I was actually sorting out that bit as you posted.

      Short of setting up a few printers via the script I'm back in working order.

    • FredtxF

      What does the >> cursor mean in Powershell after typing a command?

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion shell powershell
      6
      1 Votes
      6 Posts
      966 Views
      FredtxF

      @scottalanmiller That did the trick. Didn't even cross my mind. Thanks!

    • DustinB3403D

      Snipe-IT Shell Commands and Backing up

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion snipe-it backup sql shell cron
      4
      1 Votes
      4 Posts
      2k Views
      DustinB3403D

      @hobbit666 no this is just for the mysql database.

    • scottalanmillerS

      Linux FAQ: Why Do We Need a Dot Slash Before a Local Command

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux unix security linux system administration sam linux administration bash shell ksh tcsh csh zsh
      1
      0 Votes
      1 Posts
      2k Views
      No one has replied
    • mlnewsM

      Using DSH, the Distributed Shell, on Linux

      Watching Ignoring Scheduled Pinned Locked Moved News linux shell command line dsh tecmint
      4
      4 Votes
      4 Posts
      2k Views
      scottalanmillerS

      @Kelly said in Using DSH, the Distributed Shell, on Linux:

      Hmm, this might be an interesting alternative to cssh since it doesn't mirror keyboard input, but merely runs the same command. I'll have to see if we can adapt this for running our auditing scripts.

      Yeah, a little bit more robust there ๐Ÿ™‚

    • AmbarishrhA

      Log all users activity on server

      Watching Ignoring Scheduled Pinned Locked Moved IT Discussion linux shell logging
      19
      0 Votes
      19 Posts
      3k Views
      scottalanmillerS

      @Ambarishrh said:

      @scottalanmiller said:

      @Ambarishrh said:

      I am also checking https://www.graylog.org/ as this seems to be pretty famous and looks like a good alternative to ELK if anyone else looking at it.

      Graylog is built on the same foundation as ELK. They are both log ingesting and interfaces applied on top of Elasticsearch.

      Have you tried Graylog?

      No, on my long list of things to build.

    • 1
    • 2
    • 1 / 2