linux command training
問題文
(sudo apt update && sudo apt upgrade)
sudo apt update && sudo apt upgrade
(export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH)
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
(source ~/.bashrc)
source ~/.bashrc
(export PATH=/usr/local/bin:$PATH)
export PATH=/usr/local/bin:$PATH
(git checkout develop)
git checkout develop
(git push origin develop)
git push origin develop
(git reset --hard)
git reset --hard
(cat ~/.ssh/id_rsa.pub)
cat ~/.ssh/id_rsa.pub
(mkdir build && cd build)
mkdir build && cd build
(ifconfig | grep inet -B1)
ifconfig | grep inet -B1
(which clang)
which clang
(docker run -it --rm alpine)
docker run -it --rm alpine
(ldd /bin/ls)
ldd /bin/ls
(git add . && git commit -m"initial version")
git add . && git commit -m"initial version"
(ls -l /etc/systemd/system/default.target)
ls -l /etc/systemd/system/default.target
(ls -l /etc/apt/sources.list.d)
ls -l /etc/apt/sources.list.d
(sudo systemctl restart docker)
sudo systemctl restart docker
(sudo systemctl restart networking.service)
sudo systemctl restart networking.service
(cmake .. -DCMAKE_BUILD_TYPE=Release)
cmake .. -DCMAKE_BUILD_TYPE=Release
(systemctl set-default multi-user.target)
systemctl set-default multi-user.target
(systemctl set-default rescue.target)
systemctl set-default rescue.target