Skip to content

Instantly share code, notes, and snippets.

@thecloudranger
Last active August 30, 2023 18:38
Show Gist options
  • Select an option

  • Save thecloudranger/afca7bd8cad830bffc50cb86e45cb935 to your computer and use it in GitHub Desktop.

Select an option

Save thecloudranger/afca7bd8cad830bffc50cb86e45cb935 to your computer and use it in GitHub Desktop.
UNIX workshop commands

Pull ubuntu image

docker pull ubuntu:latest

Spin up ubuntu container

docker run -it --rm ubuntu

bash commands

unminimize

apt-get install man-db mlocate npm

ls -l

ls -lh

ls -a

ls -t

ls -d */

ls *

cd /var

ls -R

cd ~

echo test123

rev

echo test123|rev

echo test123|rev|rev

cd /etc/systemd/

mkdir -p this/is/a/very/long/directory

cd tab tab

cd ~

cd -

cd /var/

find .

find . -name '*.log'

find . -name '*.log' -size +500k

find . -name '*.log' -size +100k

find . -name '*.log' -size +100k -exec echo {} ;

find . -name '*.log' -size +100k -exec du -h {} ;

find . -name '*.log' -size +100k -exec echo rm {} ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment