ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    将 lsof -i -P -n | grep LISTEN | grep 缩短成一个 bash alias 可以传参数

    Mar 13, 20232 min read

    可以在 ~/.bashrc 文件中加入如下代码:

    alias lis='lsof -i -P -n | grep LISTEN | grep '
    

    然后使用 lis 命令即可,例如:

    lis 8080
    

    就相当于执行:

    lsof -i -P -n | grep LISTEN | grep 8080
    

    相关文章

    CSS属性content的作用及应用场景详解

    CSS `content` 属性主要用于在伪元素中插入内容,如文本、图像等,广泛应用于添加引号、图标、生成工具提示及创建视觉效果等场景。

    查询我自己是否拥有公网IPv6地址

    用户查询自己是否拥有公网IPv6地址,可通过访问www.test-ipv6.com或ip6tools.com/#WhatisMyIPv6Address进行确认。

    SwiftUI如何滚动到列表中的特定行?

    在SwiftUI中,通过使用ScrollViewReader和ScrollView,可以实现滚动到列表中特定行的功能,具体步骤包括创建带有ScrollView和ScrollViewReader的视图、为列表项添加ID以及使用scrollViewProxy.scrollTo()方法滚动到指定行。

    Tailscale 使用节点共享与指定的 Tailscale 用户共享您的设备

    Tailscale 是一款现代 VPN 工具,通过安全连接设备并简化共享文件和资源的流程,增强了数据共享的安全性和便捷性。

    Tailwind垂直居中Grid每个网格项

    使用 `align-items: center;` 或 Tailwind 的 `items-center` 类可以实现 Tailwind Grid 中每个网格项的垂直居中。