Ham Radio, Linux, Cars, Life, Whatever...
cat /var/log/mail.logCD The cd command changes your current directory. In other words, it moves you to a new place in the filesystem. If you are changing to a directory that is within your current directory, you can simply type cd and the name of the other directory.
cd /var/log/CHMOD The chmod command sets the file permissions flags on a file or folder. The flags define who can read, write to or execute the file. When you list files with the -l (long format) option you’ll see a string of characters that look like
chmod 0644 index.php
chmod 0755 downloadsCHOWN The chown command allows you to change the owner and group owner of a file.
chown bob:mail mail.txtDF The df command shows the size, used space, and available space on the mounted filesystems of your computer.
df -h downloadsFREE The free command gives you a summary of the memory usage with your computer. It does this for both the main Random Access Memory (RAM) and swap memory.
free -hGROUPS The groups command tells you which groups a user is a member of.
groups billLS It lists the files and folders in the directory you specify. By default, ls looks in the current directory. To list the files and folders in the current directory:
lsTo list the files and folders in the current directory with a detailed listing use the -l (long) option:
ls -lMKDIR The mkdir command allows you to create new directories in the filesystem. You must provide the name of the new directory to mkdir. If the new directory is not going to be within the current directory, you must provide the path to the new directory.
mkdir yaesuMV The mv command allows you to move files and directories from directory to directory. It also allows you to rename files.
mv radio.txt /home/bill/Documents/PASSWD The passwd command lets you change the password for a user. Just type passwd to change your own password.
sudo passwd billSSH Use the ssh command to make a connection to a remote Linux computer and log into your account. To make a connection, you must provide your user name and the IP address or domain name of the remote computer.
ssh firstname.lastname@example.orgSUDO The sudo command is required when performing actions that require root or superuser permissions, such as changing the password for another user.
sudo passwd billUNAME You can obtain some system information regarding the Linux computer you’re working on with the uname command. Use the -a (all) option to see everything. Use the -s (kernel name) option to see the type of kernel. Use the -r (kernel release) option to see the kernel release. Use the -v (kernel version) option to see the kernel version.
uname -aUpgrading Linux distros To update a Debian based disto
sudo apt update
sudo apt upgradeTo update a Redhat based distro (Fedora)