LPIC 1 Objectives
https://www.lpi.org/our-certifications/exam-101-objectives
UNIT 1
history -d 100
history -c = clears the history
Occasionally, the problem arises where you can’t remember the exact name of a command to look up
$ man -k “system information”
dumpe2fs (8) – dump ext2/ext3/ext4 filesystem information
uname (1) – print system information
Linux file descriptor:
Standard Input (STDIN) = 0 <, << Standard Output (STDOUT) = 1 >, >>
Standard Error (STDERR) = 2
echo $PATH 1> path.txt
echo $PATH > path.txt
A common trick is to redirect standard output or standard error to /dev/null. This file is a device that’s connected to nothing; it’s used when you want to get rid of data.
whine 2> /dev/null
date +%M
mkdir -p /home/yuko/a/b/c
mv -f /tmp/A/* /targetfolder
rm -Rf /tmp/A /*
cp -Rf /tmp/A/* /targetfolder
echo ‘$HOME’ = $HOME
echo “$HOME” = /home/yuko
echo `date +%M` = 50
lsattr filename
Recent Comments