ITPreview
Open in TheBrain

Linux Commands

Launch Global Protect UI
Globalprotect launch-ui
Uninstall:
Sudo apt purge <filename>
Install:
Sudo dpkg -i <filelocation>
Editing a file/script
Sudo nano <filename>

Sudo apt update
 Sudo apt upgrade
Exit
Removing file
 Rm <filename>
Open SSH

sudo apt install openssh-server
Re-installing the control center/settings
sudo apt-get install -\-reinstall gnome-control-center
sudo cryptsetup luksAddKey /dev/sda(depends where the image sits)

Remove TPM Sudo nano start.sh Find TPM CTRL-K until it’s all done Save it and hit yes to modify

sudo apt-get install -\-reinstall cups

sudo apt install cups - installing printer drivers
adgupdate

sudo lshw

sudo lshw -short

sudo lshw -html > lshw.html

lspci

Lists all the packages within the folder

dpkg \-l

realm join corp.lucid.lcl

realm list

hostname -i

CD - lets you go one folder up rm -rf is to for remove/delete something

cd ..
rm \-rf
Linux script setup after Linux OS download

sudo wget [http://scripts/u22/start_tpm.sh](http://scripts/u22/start_tpm.sh)

sudo chmod +x start_tpm.sh

sudo ./start_tpm.sh

sudo systemctl restart sssd.service

lshw - list hardware

sudo nautilus - root access to Ubuntu finder

sudo apt --fix-broken install

history > command_history.txt - Terminal History

history 50 > last_50_commands.txt - Last 50 commands from Terminal

sudo apt-get install python3-mysql.connector - https://askubuntu.com/questions/656610/trying-to-install-mysql-connector-for-python-3

ifconfig -a - check network information

ifconfig -a | grep ether - check MAC address

Application Check

dpkg -l | grep falcon - check if the application crowdstrike and Tanium is installed

dpkg -l | grep tanium

dpkg -l | grep -i netskope = nsclient

systemctl start taniumclient 
systemctl stop taniumclient 
systemctl status taniumclient
Authentication checking

sudo sssctl domain-status corp.lucid.lcl - for authentication testing

sudo sssctl user-checks <username> - shows the connections and how it is grabbing the profile

sss_cache -E - invalidate cached entries

sudo apt install exfatprogs - to be able to use exfat formatting on linux

RPM>DEB

sudo apt install alien - This is to convert rpm files into .deb

alien --to-deb /path/to/file.rpm

Path - finder

echo $PATH

Check Linux Kernel

uname -r - 11 Commands to Collect System and Hardware Info in Linux

Kernel Tree - Index of /mainline