💻
Dev Notes
  • Dev notes
  • Back end
  • books
  • Front End
  • Platforms in which you can improve your skills
  • Run local Jekyll site
  • Recommended podcasts you should listen to
  • Tools
  • code
    • REST
  • docker
    • Docker cli commands
  • git
    • Changing author info
    • Working with Github organizations
    • Working with upstream
  • npm
    • NPM cli
  • unix
    • Mac OS
    • Raspberry Pi
    • Terminal
Powered by GitBook
On this page
  • Count files in the folder:
  • "You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory." Fix:
  • Copy file via scp
  • Check who is using specified port
  • Change Lenovo conservation mode (requires sudo)

Was this helpful?

  1. unix

Terminal

Count files in the folder:

ls | wc -l

"You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory." Fix:

sudo gem install bundler

Copy file via scp

scp archive.zip root@HOST_IP:~/Downloads

Check who is using specified port

lsof -nP -iTCP:$PORT | grep LISTEN

Change Lenovo conservation mode (requires sudo)

reading the current status:

cat /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode

enable Conservation mode:

echo 1  >  /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode

disable conservation mode:

echo 0  > /sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode
PreviousRaspberry Pi

Last updated 3 years ago

Was this helpful?