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

      Unsolved Linux Dig Finding cname records

      IT Discussion
      • linux dig shell dns cname • • DustinB3403
      12
      0
      Votes
      12
      Posts
      1.3k
      Views

      JaredBuschJ

      API and a script

    • 1

      Shift + PgUp/PgDn in terminal?

      IT Discussion
      • console terminal linux shell • • 1337
      3
      0
      Votes
      3
      Posts
      919
      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

      Solved VitalPBX setup script on Vultr

      IT Discussion
      • vitalpbx vultr linux shell bash scripting • • JaredBusch
      5
      0
      Votes
      5
      Posts
      781
      Views

      JaredBuschJ

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

    • wirestyle22W

      Cron GPG Scripts can't locate the Keyring

      IT Discussion
      • gpg shell • • wirestyle22
      5
      0
      Votes
      5
      Posts
      561
      Views

      wirestyle22W

      That seems to have fixed the issue

    • DustinB3403D

      Solved Scripted visudo updates

      IT Discussion
      • sed visudo apple unix terminal shell zsh • • DustinB3403
      16
      0
      Votes
      16
      Posts
      1.4k
      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

      IT Discussion
      • nohup linux shell bash • • Emad R
      6
      2
      Votes
      6
      Posts
      966
      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

      IT Discussion
      • shell linux posix nu shell • • scottalanmiller
      5
      2
      Votes
      5
      Posts
      725
      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

      IT Discussion
      • ssh linux openssh ubuntu ubuntu 16.04 ubuntu 18.04 bash shell zsh • • scottalanmiller
      45
      1
      Votes
      45
      Posts
      3.6k
      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

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

      IT Discussion
      • shell script credentials hashing • • DustinB3403
      79
      2
      Votes
      79
      Posts
      5.2k
      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

      IT Discussion
      • osx administration automation brew shell scripting apple xcode • • DustinB3403
      1
      1
      Votes
      1
      Posts
      521
      Views

      No one has replied

    • DustinB3403D

      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
      1.7k
      Views

      No one has replied

    • scottalanmillerS

      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
      1.2k
      Views

      scottalanmillerS

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

    • scottalanmillerS

      Shell Speeds, Bash and PowerShell

      IT Discussion
      • bash shell powershell • • scottalanmiller
      91
      0
      Votes
      91
      Posts
      6.1k
      Views

      RojoLocoR

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

    • DustinB3403D

      OSX Shell Error Operation Not Permitted

      IT Discussion
      • apple osx quarantine shell bash scripting security troubleshooting brew • • DustinB3403
      2
      2
      Votes
      2
      Posts
      713
      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

      IT Discussion
      • osx apple shell shell scripting error • • DustinB3403
      28
      0
      Votes
      28
      Posts
      2.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?

      IT Discussion
      • shell powershell • • Fredtx
      6
      1
      Votes
      6
      Posts
      929
      Views

      FredtxF

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

    • DustinB3403D

      Snipe-IT Shell Commands and Backing up

      IT Discussion
      • snipe-it backup sql shell cron • • DustinB3403
      4
      1
      Votes
      4
      Posts
      2.4k
      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

      IT Discussion
      • linux unix security linux system administration sam linux administration bash shell ksh tcsh csh zsh • • scottalanmiller
      1
      0
      Votes
      1
      Posts
      2.0k
      Views

      No one has replied

    • mlnewsM

      Using DSH, the Distributed Shell, on Linux

      News
      • linux shell command line dsh tecmint • • mlnews
      4
      4
      Votes
      4
      Posts
      1.8k
      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

      IT Discussion
      • linux shell logging • • Ambarishrh
      19
      0
      Votes
      19
      Posts
      3.1k
      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