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

      Unsolved Linux Dig Finding cname records
      IT Discussion • linux dig shell dns cname • • DustinB3403

      12
      0
      Votes
      12
      Posts
      215
      Views

      JaredBusch

      API and a script

    • Pete.S

      Shift + PgUp/PgDn in terminal?
      IT Discussion • console terminal linux shell • • Pete.S

      3
      0
      Votes
      3
      Posts
      294
      Views

      Pete.S

      @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.

    • JaredBusch

      Solved VitalPBX setup script on Vultr
      IT Discussion • vitalpbx vultr linux shell bash scripting • • JaredBusch

      5
      0
      Votes
      5
      Posts
      173
      Views

      JaredBusch

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

    • wirestyle22

      Cron GPG Scripts can't locate the Keyring
      IT Discussion • gpg shell • • wirestyle22

      5
      0
      Votes
      5
      Posts
      102
      Views

      wirestyle22

      That seems to have fixed the issue

    • DustinB3403

      Solved Scripted visudo updates
      IT Discussion • sed visudo apple unix terminal shell zsh • • DustinB3403

      16
      0
      Votes
      16
      Posts
      269
      Views

      DustinB3403

      @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 R

      nohup
      IT Discussion • nohup linux shell bash • • Emad R

      6
      2
      Votes
      6
      Posts
      202
      Views

      black3dynamite

      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
    • scottalanmiller

      Nu Shell, a New PowerShell-inspired Shell for Linux
      IT Discussion • shell linux posix nu shell • • scottalanmiller

      5
      2
      Votes
      5
      Posts
      289
      Views

      scottalanmiller

      @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?

    • scottalanmiller

      Tracking Down Ubuntu BASH Session Closing
      IT Discussion • ssh linux openssh ubuntu ubuntu 16.04 ubuntu 18.04 bash shell zsh • • scottalanmiller

      45
      1
      Votes
      45
      Posts
      716
      Views

      matteo nunziati

      @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

    • DustinB3403

      Solved Scripting - How do you store your credentials and call them later?
      IT Discussion • shell script credentials hashing • • DustinB3403

      79
      2
      Votes
      79
      Posts
      715
      Views

      P

      @IRJ

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

    • DustinB3403

      OSX administrators who use Brew - Xcode Tools no longer included by default
      IT Discussion • osx administration automation brew shell scripting apple xcode • • DustinB3403

      1
      1
      Votes
      1
      Posts
      159
      Views

      No one has replied

    • DustinB3403

      Enabling root SSH access for OSX
      IT Discussion • osx macos system administration cli command line shell apple mac macos system administration ssh • • DustinB3403

      1
      2
      Votes
      1
      Posts
      997
      Views

      No one has replied

    • scottalanmiller

      Managing Windows Local Users with PowerShell
      IT Discussion • windows sam windows administration system administration windows administration powershell shell command line cli • • scottalanmiller

      14
      2
      Votes
      14
      Posts
      434
      Views

      scottalanmiller

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

    • scottalanmiller

      Shell Speeds, Bash and PowerShell
      IT Discussion • bash shell powershell • • scottalanmiller

      91
      0
      Votes
      91
      Posts
      1445
      Views

      RojoLoco

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

    • DustinB3403

      OSX Shell Error Operation Not Permitted
      IT Discussion • apple osx quarantine shell bash scripting security troubleshooting brew • • DustinB3403

      2
      2
      Votes
      2
      Posts
      260
      Views

      DustinB3403

      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
    • DustinB3403

      Find the character break - sh script
      IT Discussion • osx apple shell shell scripting error • • DustinB3403

      28
      0
      Votes
      28
      Posts
      1047
      Views

      DustinB3403

      @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.

    • Fredtx

      What does the >> cursor mean in Powershell after typing a command?
      IT Discussion • shell powershell • • Fredtx

      6
      1
      Votes
      6
      Posts
      638
      Views

      Fredtx

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

    • DustinB3403

      Snipe-IT Shell Commands and Backing up
      IT Discussion • snipe-it backup sql shell cron • • DustinB3403

      4
      1
      Votes
      4
      Posts
      1884
      Views

      DustinB3403

      @hobbit666 no this is just for the mysql database.

    • scottalanmiller

      Linux FAQ: Why Do We Need a Dot Slash Before a Local Command
      IT Discussion • linux unix security linux system administration sam linux administration bash shell ksh tcsh csh zsh • • scottalanmiller

      1
      0
      Votes
      1
      Posts
      1463
      Views

      No one has replied

    • mlnews

      Using DSH, the Distributed Shell, on Linux
      News • linux shell command line dsh tecmint • • mlnews

      4
      4
      Votes
      4
      Posts
      1414
      Views

      scottalanmiller

      @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 ๐Ÿ™‚

    • Ambarishrh

      Log all users activity on server
      IT Discussion • linux shell logging • • Ambarishrh

      19
      0
      Votes
      19
      Posts
      2550
      Views

      scottalanmiller

      @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.