cli

  1. L

    Format partition as ext4 and setting overhead to 0%

    Need to format an external hard drive partition. It's not a system drive/partition so no system log files will be written to it. (who uses an external hard drive to write system log files anyway?) By default when you format a partition as ext4, the system reserves 5% of the disk space. So, only...
  2. L

    How to copy files and directories fully preserving nanosecond precision for timestamps

    Purchased a new laptop recently, so need to copy files from old laptop to new. Used the tar command to create an archive, then copied the tar file across to external hard drive, afterwards copied the tar file from external drive to new laptop, then extracted archive on new laptop. Once...
  3. iridakos

    CLI for daily notes

    Hello, I made a CLI tool to save, access and organize daily notes. I named it stup, it derives from the Standup meetings since its initial purpose was to cover my need for keeping my Standup notes in a convenient way. You can find the script and more information about its features on GitHub...
  4. M

    Federated CLI Access with SAML (AWS)

    Hello, I'm trying to allow acces to AWS CLI/API using SAML and ADFS. Every time I run my script I receive the error "Response did not contain a valid SAML assertion". Any idea what's causing this response? For reference I'm following the guide posted here...
  5. superboy2k6

    Add a specific user to get sudo privilleges using shell scripts ONLY

    Hey so I wanted to create a shell script so that a user is added in which the user has sudo privilleges. My code went like this: #!/bin/bash useradd liveuser ; echo -e "liveuser\nliveuser" | passwd liveuser usermod -aG sudo liveuser su liveuser exit It did create the user with the password but...
  6. blackneos940

    Having Trouble Understanding When To Call Classes In C# With Mono and .NET...

    So anywho, this post pertains to Linux, but also to any OS that can run Mono or .NET Framework. It's a basic C# Program I got from a YouTube video teaching C#. :) First, the Code... using static System.Console; namespace Classes { class Animal { //Class Constructors public...
Top