Linux Commands Useful

 

Chmod

Make folder write/read for all users

Make SH file executable

 

Delete old files

older than 30 days

 

 

List files in directory

https://www.tecmint.com/sort-ls-output-by-last-modified-date-and-time/

 

Count files

 

List File systems

Available HDDs

Disk UUIDs

Mounting disk

Automatic mounting

Mount points to these HDDs

 

List current directory

Find file

https://www.geeksforgeeks.org/find-command-in-linux-with-examples/

Find text in files

https://www.thegeekstuff.com/2009/03/15-practical-unix-grep-command-examples/

Kill process

 

Zip a folder

 

Find location of some app in global path

 

Create

Will result in /path/destination/folder_or_file

Find source

 

Move betwween folders:

 

Debug incoming requests HTTP netcat

Test if port is accepting something

 

Opening firewall ports

 

Recover non-bootable linux using HDD

 

 

HPC:

Started tasks:

Videocard memory usage:

Starting/killing tasks:

 

Screens:

Console management:

 

Installing lates NodeJS

https://github.com/nodesource/distributions#debinstall

 

Append files through command line

 

Set hostname

Set and store

 

Stored here