arm1.ru

A post of handy bits for the Linux console

Related Linux posts:

  • Add files to a tar archive:
    tar -cvf archive.tar file1 file2 directory1 directory2
  • Extract a tar archive:
    tar -xvf archive.tar
  • Find all files containing a given string:
    grep -rl 'search_string' start_directory
  • Show .php files in the current directory modified in the last 7 days:
    find . -type f -name '*.php' -mtime -7
  • How much space directories take up:
    sudo du -sh /home/*
  • Who’s listening on a port:
    fuser -v 8080/tcp
  • How much disk space is left:
    df -h
keyboard_return