Uly.me

cloud engineer

  • Home
  • About
  • Archives
Home/Archives for remove

July 28, 2020

Remove Sudo Password

Removing sudo password is typically not a good practice. If you’re a seasoned system administrator, or you’re the only one using your own desktop, being prompted for a sudo password can get really annoying. Here’s how to stop getting prompted every time you run sudo.

Run visudo.

sudo visudo

sudo visudo

Edit the sudo line and set to below.

%sudo ALL=(ALL) NOPASSWD: ALL

%sudo ALL=(ALL) NOPASSWD: ALL

Save file.

July 26, 2020

Remove Quotes From Strings

Here’s the command to remove quotes from a string in Bash by using the tr -d command. I’m using jq tool to extract the access key from a json file. Bash returns a string surrounded by quotes. To remove the quotes, just pipe the string to the tr -d command.

jq .AccessKey.AccessKeyId key.json

jq .AccessKey.AccessKeyId key.json

Result:

"ASDFSDFSDFASDFSDFSDFGHGDF"

"ASDFSDFSDFASDFSDFSDFGHGDF"

Using tr -d.

jq .AccessKey.AccessKeyId key.json | tr -d \"

jq .AccessKey.AccessKeyId key.json | tr -d \"

Result:

ASDFSDFSDFASDFSDFSDFGHGDF

ASDFSDFSDFASDFSDFSDFGHGDF

July 7, 2020

How To Remove Snap

Snap is cool, but not for everyone. To remove, follow these steps.

# get list
snap list
# remove snaps. repeat for each app.
snap remove chromium
# remove snapd
apt purge snapd
# remove snap from home
rm -rf ~/snap
# clean up cache
rm -rf /var/cache/snapd
apt purge snapd

# get list snap list # remove snaps. repeat for each app. snap remove chromium # remove snapd apt purge snapd # remove snap from home rm -rf ~/snap # clean up cache rm -rf /var/cache/snapd apt purge snapd

  • 1
  • 2
  • 3
  • Next Page »
  • Cloud
  • Linux
  • Git

Copyright © 2012–2021