Linux命令笔记
2022/1/10 7:03:29
本文主要是介绍Linux命令笔记,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
Find命令:
find ../ -name dblook.log find . ! \( -user assentis -o -group assentis \) -exec ls -l {} \;
参考:
鳥哥的 Linux 私房菜 -- 第六章、Linux 檔案與目錄管理 (vbird.org)
find(1) - Linux manual page (man7.org)
chown (Change Own)
chown --changes --recursive assentis:assentis .
CommandDescriptionRelated Link
uname -aLinux Kernel Version
lsb_release -aDistribution Information
whodisplay who is on the system
wisplays information about the users currently on the machinehttps://askubuntu.com/questions/974718/how-do-i-get-the-list-of-the-active-login-sessions
analytical options as --until, --since
apt list --installed
printenvPrint all environment variables
envRun command with a temporary environment variable
~/.bashrcWe can edit this file to define the environment variable and command alias we want to have after system restart
/etc/passwdShow all users
sh
Switch to another user
chvt
Switch to another terminal (tty teletypewriter)
sudo chvt 1-6
https://blog.csdn.net/qq_41545647/article/details/108748103
tty
Print the file name of the terminal connected to standard input.
ln
Make a link
ps
report a snapshot of the current processes.
ps -ef, ps axu
Ctrl+z将工作放入后台
Jobs查看后台工作Jobs -l
fgForeground 恢复后台工作
ssh-keygen
OpenSSH authentication key utilityssh-keygen -b 2048 -t rsa
Convert generated pub format to pem format:
From <https://man7.org/linux/man-pages/man1/ssh-keygen.1.html>
ssh-keygen -e -f ado_service_principal2.pub
Convert RSA Private Key to OpenSSH
ssh-keygen -p -N "" -f key_file.key
Generate a public key based on private key
ssh-keygen -y -f key_file.pub
openssl
# Convert generated pub format to pem format: openssl rsa -in id_rsa -pubout -out id_rsa.pub.pem # Generated Certificate: openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 365 # Decrypt Private Key of the certificate: openssl rsa -in key.pem -out key_decrepted.pem
New-SelfSignedCertificate
PowerShell command to generate a new self-signed web certificate
New-SelfSignedCertificate -DnsName $env:COMPUTERNAME -CertStoreLocation Cert:\LocalMachine\My Get-ChildItem -Path Cert:\LocalMachine\My
az keyvault
az keyvault secret set --vault-name 'ContosoKeyVault' --name 'SQLPassword' --value 'Pa$$w0rd' az keyvault secret show --vault-name 'hejing195' --name 'tf-test-alicloud-access-key' az loginaz login --service-principal -u <app-id> -p <password-or-cert> --tenant <tenant>
这篇关于Linux命令笔记的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-11-12如何创建可引导的 ESXi USB 安装介质 (macOS, Linux, Windows)
- 2024-11-08linux的 vi编辑器中搜索关键字有哪些常用的命令和技巧?-icode9专业技术文章分享
- 2024-11-08在 Linux 的 vi 或 vim 编辑器中什么命令可以直接跳到文件的结尾?-icode9专业技术文章分享
- 2024-10-22原生鸿蒙操作系统HarmonyOS NEXT(HarmonyOS 5)正式发布
- 2024-10-18操作系统入门教程:新手必看的基本操作指南
- 2024-10-18初学者必看:操作系统入门全攻略
- 2024-10-17操作系统入门教程:轻松掌握操作系统基础知识
- 2024-09-11Linux部署Scrapy学习:入门级指南
- 2024-09-11Linux部署Scrapy:入门级指南
- 2024-08-21【Linux】分区向左扩容的方法